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

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

Moderator: mickeydusaor

Previous topicNext topic
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.

Post by 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.



User avatar

Robert Sample
Global Moderator
Global Moderator
Posts: 1328
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
Zodiac: Virgo

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

Post by 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.



Previous topicNext topic

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