Hi,
Could anyone please advise me in finding the size of the PDS or PS using REXX? I need to know cylinders occupied by them.
How to find the size of the PDS or PS using REXX?
Moderator: mickeydusaor
-
- Registered Member
- Posts: 20
- Joined: Fri Nov 01, 2013 11:31 pm
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: How to find the size of the PDS or PS using REXX?
Hi Jatin,
What do you mean by SIZE is it total bytes or Tracks or Cylinders?
What do you mean by SIZE is it total bytes or Tracks or Cylinders?
zprogrammer
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: How to find the size of the PDS or PS using REXX?
Hi,
Try this
Try this
Code: Select all
/*REXX*/
ADDRESS ISPEXEC
X = LISTDSI("'"<pds or ps name>"'")
SAY 'DSNAME = ' SYSDSNAME
SAY 'LRECL = ' SYSLRECL
SAY 'BLKSIZE = ' SYSBLKSIZE
SAY ' USED ' SYSUNITS '= ' SYSUSED
SAY ' ALLOCATED ' SYSUNITS '= ' SYSALLOC
zprogrammer
-
- Global Moderator
- Posts: 588
- Joined: Wed Nov 20, 2013 11:53 am
- Location: Mars
Re: How to find the size of the PDS or PS using REXX?
Also check this link which tells you what other information you could retrieve
http://publibz.boulder.ibm.com/cgi-bin/ ... T#FIRSTHIT
http://publibz.boulder.ibm.com/cgi-bin/ ... T#FIRSTHIT
zprogrammer
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute