There is the TSO command LISTDSI that will probably do what you want. Just make a little rexx exec and run it in batch.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ikj4a380/4.4.2 something like this: /* Rexx */ rc=LISTDSI('''MY.PDSE.DATASET''') SAY 'RC='rc SAY 'SYSADIRBLK='sysadirblk SAY 'SYSALLOC='sysalloc SAY 'SYSBLKSIZE='sysblksize SAY 'SYSBLKSTRK='sysblkstrk SAY 'SYSCREATE='syscreate SAY 'SYSDATACLASS='sysdataclass SAY 'SYSDSNAME='sysdsname SAY 'SYSDSORG='sysdsorg SAY 'SYSDSSMS='sysdssms SAY 'SYSEXDATE='sysexdate SAY 'SYSEXTENTS='sysextents SAY 'SYSKEYLEN='syskeylen SAY 'SYSLRECL='syslrecl SAY 'SYSMEMBERS='sysmembers SAY 'SYSMGMTCLASS='sysmgmtclass SAY 'SYSMSGLVL1='sysmsglvl1 SAY 'SYSMSGLVL2='sysmsglvl2 SAY 'SYSPASSWORD='syspassword SAY 'SYSPRIMARY='sysprimary SAY 'SYSRACFA='sysracfa SAY 'SYSREASON='sysreason SAY 'SYSRECFM='sysrecfm SAY 'SYSREFDATE='sysrefdate SAY 'SYSSECONDS='sysseconds SAY 'SYSSTORCLASS='sysstorclass SAY 'SYSTRKSCYL='systrkscyl SAY 'SYSUDIRBLK='sysudirblk SAY 'SYSUNIT='sysunit SAY 'SYSUNITS='sysunits SAY 'SYSUPDATED='sysupdated SAY 'SYSUSED='sysused SAY 'SYSUSEDPAGES='sysusedpages SAY 'SYSVOLUME='sysvolume EXIT -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Adauto Sent: 16. tammikuuta 2010 20:20 To: [email protected] Subject: PDSE allocated and used space 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. Jose ADAUTO Ribeiro ---------------------------------------------------------------------- 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

