Listing Subsystem Counters for All Devices on Similar Subsystems: Example 3

In this example, a Subsystem Counters report for all devices on all like subsystems is requested.
     //LISTDAT3  JOB   ...
     //STEP1     EXEC  PGM=IDCAMS
     //OUTDS     DD    DSN=OUTDATA,DISP=(,CATLG),UNIT=3390,
     //                VOL=SER=VOL001,SPACE=(CYL,(2,1)),
     //                DCB=(RECFM=VBA,
     //                LRECL=250,BLKSIZE=504)
     //SYSPRINT  DD    SYSOUT=A
     //SYSIN     DD    *
       LISTDATA COUNTS VOLUME(VOL002) UNIT(3390) ALL OUTDATASET(OUTDATA)
     /*
The OUTDS DD statement allocates the output data set (DSN=OUTDATA) on a 3390 for use by the LISTDATA command. If an output data set is not allocated, the report is printed on the SYSPRINT data set. The DCB parameter is required for the alternate output data set. The output data set is cataloged in the master catalog (DISP=(,CATLG)). This DD statement allocates two cylinders for the output data set and, if more space is required for the report, the space is extended in increments of one cylinder. The LISTDATA command parameters are:
  • COUNTS, which specifies printing of a Subsystem Counters report.
  • VOLUME, which specifies VOL002.
  • UNIT, which specifies a 3390 unit.
  • ALL, which specifies that the Subsystem Counters report include subsystem counters for all devices on all like subsystems.
  • OUTDATASET, which identifies OUTDATA as the output data set used for the report; rather than the SYSPRINT data set.