How to find the size of the PDS or PS using REXX?

Time Sharing Option, Interactive System Productivity Facility and REstructured eXtended eXecutor

Moderator: mickeydusaor

Post Reply
Jatin Singh
Registered Member
Posts: 20
Joined: Fri Nov 01, 2013 11:31 pm

How to find the size of the PDS or PS using REXX?

Post by Jatin Singh »

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.
zprogrammer
Global Moderator
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?

Post by zprogrammer »

Hi Jatin,

What do you mean by SIZE is it total bytes or Tracks or Cylinders?
zprogrammer
zprogrammer
Global Moderator
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?

Post by zprogrammer »

Hi,

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
zprogrammer
Global Moderator
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?

Post by zprogrammer »

Also check this link which tells you what other information you could retrieve

http://publibz.boulder.ibm.com/cgi-bin/ ... T#FIRSTHIT
zprogrammer
Post Reply

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

Register

Sign in

Return to “TSO, ISPF & REXX (Do you still do CLIST?!).”