CL Command Reference - DSPOPT

CL Command List > DSPOPT Reference

Description:

The Display Optical (DSPOPT) command displays volume, directory, or file attributes depending on the value specified on the DATA parameter. The information can be printed, displayed, or written to an output file. If the output is directed to an outfile it will have one of the following record formats:

. When DATA(*VOLATR) is specified the database file will have a record format named QAMODVA. The fields in the database are the same as the fields in the IBM-supplied format QAMODVA in file QAMODVAF located in library QSYS.

. When DATA(*DIRATR) is specified the database file will have a record format named QAMODPA. The fields in the database are the same as the fields in the IBM-supplied format QAMODPA in file QAMODPAF located in library QSYS.

. When DATA(*FILATR) is specified the database file will have a record format named QAMODFA. The fields in the database are the same as the fields in the IBM-supplied format QAMODFA in file QAMODFAF located in library QSYS.

Restriction: To use this command you must have *USE authority to the authorization list securing the volumes being displayed.



Examples:

Example 1: Displaying Attributes for All Optical Volumes

DSPOPT VOL(*ALL) DEV(*ALL)

This command displays the volume attributes for all volumes in all local optical devices and libraries.



Example 2: Displaying Attributes Using a Generic Search

DSPOPT VOL(PAY*) DATA(*DIRATR) PATH(¡¯/*¡¯)

This command displays the attributes for all directories in the root directory of all optical volumes beginning with the characters PAY.



Example 3: Displaying Attributes of a Specific Directory

DSPOPT VOL(VOL01) DEV(OPT01) DATA(*FILATR) PATH(¡¯/DIR1/DIR2/*¡¯)

This command displays the file attributes for all files in the directory /DIR1/DIR2 of optical volume VOL01.



Example 4: Displaying Save and Restore Data

DSPOPT VOL(*MOUNTED) DEV(OPT01) DATA(*SAVRST) PATH(¡¯*ALL¡¯)

This command displays the save and restore data for all files found on the optical volume mounted in device OPT01.