These days, it would be better to use the ISPF DSINFO service - especially if you are dealing with PDSEs.
Of course that means running ISPF in batch too. I was going to provide a link to the fine manual, but the site seems to be down at the moment. Mark -- Mark Zelden Sr. Software and Systems Architect - z/OS Team Lead Zurich North America / Farmers Insurance Group - ZFUS G-ITO mailto:[email protected] z/OS Systems Programming expert at http://expertanswercenter.techtarget.com/ Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html On Sat, 16 Jan 2010 14:17:42 -0500, Lizette Koehler <[email protected]> wrote: >You could probably write a REXX or CLIST and use LISTDSI to get SYSUSEDPAGES and do the calculation. > >SYSLRECL Logical record length >SYSBLKSIZE Block size >SYSKEYLEN Key length >SYSALLOC Allocation, in space units >SYSUSED Allocation used, in space units. For a partitioned data set extended (PDSE), âN/Aâ will be returned; see the description of the variable SYSUSEDPAGES for used space of a PDSE. >SYSUSEDPAGES The used space of a partitioned data set extended (PDSE) in 4K pages. >SYSPRIMARY Primary allocation in space units >SYSSECONDS Secondary allocation in space units >SYSUNITS Space units: CYLINDER - Space units in cylinders TRACK - Space units in tracks BLOCK - Space units in blocks ???????? - Space units are unknown >SYSEXTENTS Number of extents allocated > > >Lizette > > > >> >>Hi, >> >>How can I do, on a batch program, to obtain the allocated and used space >>from a PDSE file? The same information that matchs with de ISPF 3.4 >>informations. >> >>Thanks in advance. >> > >---------------------------------------------------------------------- >For IBM-MAIN subscribe / signoff / archive access instructions, >send email to [email protected] with the message: GET IBM-MAIN INFO >Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

