Generic Volume Data Collection: Example 1

In this example, a partially specified volume serial number is provided which causes data collection to occur from all on line volumes beginning with that generic name.
//COLLECT1 JOB    ...
//STEP1    EXEC   PGM=IDCAMS
//SYSPRINT DD     SYSOUT=A
//OUTDS    DD     DSN=USER.DCOLLECT.OUTPUT,
//       STORCLAS=LARGE,
//       DSORG=PS,
//       DCB=(RECFM=VB,LRECL=644,BLKSIZE=0),
//       SPACE=(1,(100,100)),AVGREC=K,
//       DISP=(NEW,CATLG,KEEP)
//SYSIN    DD     *
     DCOLLECT -
           OFILE(OUTDS) -
           VOLUME(SYS1*)
/*
Job control language statements:
  • The DD statement OUTDS describes the sequential output data set where records from data collection is written.
Parameters are:
  • OFILE identifies the output data set (USER.DCOLLECT.OUTPUT) by ddname.
  • VOLUME names the volumes for which data is to be collected. In this example the generic specification collects data for all on line volumes that begin with the characters SYS1.

DCOLLECT utilizes LSPACE to gather VOLUME information. LSPACE obtains volume level serialization. In this example all volumes are exclusive to this system or have proper SYSTEMS scope specified to avoid ENQ conflicts.