Find the free CA space for a VSAM file or catalog.

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

Moderator: mickeydusaor

User avatar

Topic author
Pradeep Kumar
Registered Member
Posts: 11
Joined: Sat Aug 16, 2014 11:25 pm

Find the free CA space for a VSAM file or catalog.

Postby Pradeep Kumar » Fri Jun 23, 2017 2:40 pm

Hi,

Can we find the free CA space for a VSAM file or catalog using REXX. If yes, could you please help to write a REXX code or some direction to write one.



Online
User avatar

Robert Sample
Global Moderator
Global Moderator
Posts: 1275
Joined: Fri Jun 28, 2013 1:22 am
Location: East Dubuque Illinois
Has thanked: 2 times
Been thanked: 90 times

Re: Find the free CA space for a VSAM file or catalog.

Postby Robert Sample » Fri Jun 23, 2017 5:58 pm

You can find the free CA space for a VSAM data set (z/OS only has files on tape or in Unix; referring to a VSAM data set as a "VSAM file" is WRONG) simply by running a LISTCAT and subtracting the HI-U-RBA from the HI-A-RBA. A REXX program is not needed but you could write one to parse the output of LISTCAT and extract the two numbers from it. Note that free CA space may be quite different from the total free space.




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

Who is online

Users browsing this forum: CommonCrawl [Bot] and 0 guests