Page 1 of 1

Space utilization report of datasets using JCL

PostPosted: Fri Jul 03, 2009 2:16 am
by antu
Is there is any JCL by which i can get the space utilization report of all the dataset starting with USER1.*

for example:
VOLUME DS/ORG CR DATE SMS STORCLAS Storage group Tracks Allocated Current Tracks allocated % Used


Thanks in advance!!!

Antu
8-)

Re: Space utilization report of datasets using JCL

PostPosted: Fri Jul 03, 2009 3:18 am
by dick scherrer

Re: Space utilization report of datasets using JCL

PostPosted: Tue Jul 07, 2009 2:04 am
by antu
Hi,
First of all Thanks a lot Dick..... I have submitted the below JCL

//DATAVAL JOB 'BISWP',CLASS=A,NOTIFY=&SYSUID
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//OUTDS DD DSN=USER.TEST.OUTPUT,
// STORCLAS=LARGE,
// DSORG=PS,
// DCB=(RECFM=VB,LRECL=644,BLKSIZE=0),
// SPACE=(1,(100,100)),
// DISP=(NEW,CATLG,DELETE)
//SYSIN DD *
DCOLLECT -
OFILE(OUTDS) -
VOLUME(DMPU17)
//

and it is working fine... but i am not able to see that %USED, Tracks Allocated and Tracks Used information in the output file USER.TEST.OUTPUT.....

Could anyone help me out!!!!

Thanks

Re: Space utilization report of datasets using JCL

PostPosted: Tue Jul 07, 2009 3:00 am
by dick scherrer
You're welcome :)

You might add a second step like this:
//LISTVTOC EXEC PGM=IEHLIST                                 
//SYSPRINT DD SYSOUT=*                                       
//DISK     DD UNIT=3390,VOL=SER=DMPU17,DISP=SHR             
//SYSIN    DD *                                             
  LISTVTOC FORMAT,VOL=3390=DMPU17                             
/*                                                           

Re: Space utilization report of datasets using JCL

PostPosted: Tue Jul 07, 2009 3:23 pm
by expat
and it is working fine... but i am not able to see that %USED, Tracks Allocated and Tracks Used information in the output file USER.TEST.OUTPUT.....

You would not see this information on DCOLLECT as it is recorded in Kb and not in tracks and cylinders

DCOLLECT data is discussed in great depth in the IDCAMS manual.

Click HERE to read the IDCAMS manual.