If you're looking for a line command for determining if a data set has any tracks allocated or not, rather than total space allocated, the LISTDS command with the LABEL keyword shows the format 1 DSCB in hex, including the extents. If the 3 extents in the third and last line of the format 1 DSCB display are all hex 00 then no tracks are allocated. If the dataset has more than 3 extents then more information will follow that line, so it isn't always the last line.
An example: listds notracks.data label USERID1.NOTRACKS.DATA --RECFM-LRECL-BLKSIZE-DSORG FB 80 3120 PS --VOLUMES-- VOL001 --FORMAT 1 DSCB-- F1 E5D6D3F0F0F1 0001 7000F0 000000 00 00 00 C9C2D4D6E2E5E2F24040404040 00000080000000 4000 90 00 0C30 0050 00 0000 80 80000000 000000 E5A2 0000 00000000000000000000 00000000000000000000 00000000000000000000 0000000000 Bill On Tue, 28 Aug 2012 00:45:25 -0700, Lizette Koehler <[email protected]> wrote: >Peter, >"I" works fine if working in ISPF. But when the question of line command is >requested, I am thinking along the lines of a simple interface that could be >used batch or foreground. > >Lizette > > >> -----Original Message----- >> From: IBM Mainframe Discussion List [mailto:[email protected]] On >> Behalf >> Of Hunkeler Peter (KIUP 4) >> Sent: Monday, August 27, 2012 10:54 PM >> To: [email protected] >> Subject: Re: Space Allocation In Bytes >> >> >I'm trying for an example. But what command can I use to list SPACE? >> >Neither LISTDS nor LISTCAT seems to do it for me. (But do I just not >> >know the correct options? Something under IDCAMS?) >> >> Am I a fool in believing ISPF's data set list "I" line command? It shows me >> "allocated >> tracks" and "allocated extents". If this is non-zero, then the data set >> *is* using up >> space on dasd. >> >> -- >> Peter Hunkeler >> ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
