Listing Device Status: Example 6
In this example, a listing of device status for all devices within
a subsystem is requested.
//LISTDAT5 JOB ...
//STEP1 EXEC PGM=IDCAMS
//LISTVOL2 DD UNIT=3390,VOL=SER=VOL269,DISP=SHR
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
LISTDATA DSTATUS SUBSYSTEM FILE(LISTVOL2)
/*
The LISTVOL2 DD statement specifies a 3390 unit for which device
status is reported. The LISTDATA command parameters are:
- DSTATUS, which specifies that a device status report is printed.
- SUBSYSTEM, which specifies that a Device Status report includes status for devices within the subsystem.
- FILE, which specifies LISTVOL2 as the DD statement that allocates a 3390 unit and volume VOL269.