Command reference / save
DSPTAP
Display Tape
The Display Tape (DSPTAP) command shows the volume label and data file label information that is contained on a standard labeled magnetic tape or the volume type and density. The information can be printed or shown on a display device. Additional information, including a description of each object saved to the tape file and summary information about the saved objects, can be displayed by specifying *SAVRST on the Data type prompt (DATA parameter).
Allowed environments: *ALL.
Positional parameters: 1.
Parameters
DEV
Dev
Specifies the name of the tape or media library device in which the volume being shown is placed. This is a required parameter.
VOL
Vol
Specifies the tape volume to be displayed. Note: If the device specified is a media library device, or a virtual tape device, then the volume specified should be the cartridge identifier or virtual volume name to be mounted and used.
Suggested / special values:
*MOUNTED
*MOUNTED- The volume currently placed in the device is used. For a media library device, the volume to be used is the next cartridge in the category mounted by the Set Tape Category (SETTAPCGY) command. For a virtual tape device, the volume to be used is the currently mounted one, or if there is not a currently mounted volume, the next volume in loaded status in the image catalog will be used.
character-value- Specify the volume identifier of the labeled volume. The volume identifier read from the tape is compared to this value. If the volume identifier specified is not found on the tape, an escape message is sent.
LABEL
Label
Specifies the data file identifiers of the data files on the tape whose labels are shown. The data file identifier is stored in the label ahead of the data in the file.
Suggested / special values:
*ALL
*ALL- All data file identifiers on the tape specified on the Tape device prompt (DEV parameter) are shown.
character-value- Specify the data file identifier (17 alphanumeric characters maximum) of the data file for which label information is shown.
SEQNBR
Seqnbr
Specifies, for volumes with multiple files, the range of sequence numbers of the data files on tape whose label information is displayed. If *ALL is specified on the File label prompt (LABEL parameter), all labels for the files within the specified sequence number range are displayed after the specified starting file sequence number. If a specific LABEL identifier is specified, it is compared with the label identifier of the data file specified by the starting sequence number. If the identifiers do not match, an error message is sent.
Suggested / special values:
*ALL
*ALL- All data file labels on the tape are displayed.
*FIRST- The data file labels being displayed begin with the first file (or the only file) on the tape.
1-16777215 (Starting file sequence number)- Specify the starting file sequence number. If the specified starting file sequence number is not found on the tape, an error message is sent.
*LAST- The range of data file labels being displayed begins with the specified starting file sequence number and ends with the last data file label on tape.
*ONLY- Only the file specified in the starting sequence is displayed.
1-16777215 (Ending file sequence number)- Specify the ending file sequence number. The specified ending file sequence number must be greater than or equal to the starting file sequence number. Note: The ending file sequence number is ignored for OUTPUT(*) for an interactive job. The user has control and can continue to display information or end whenever they desire. Note: The ending file sequence number is ignored if a specific LABEL identifier is specified.
DATA
Data
Specifies the type of information that is shown.
Allowed values:
*LABELS, *SAVRST, *TYPE
*LABELS- The volume label and data file labels are shown.
*SAVRST- Shows the summary information about the command and each saved object.
OUTPUT
Output
Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.
Allowed values:
*, *PRINT
*- The output is displayed (if requested by an interactive job) or printed with the job's spooled output (if requested by a batch job).
*PRINT- The output is printed with the job's spooled output.
*OUTFILE- The output is directed to the database file specified on the OUTFILE parameter.
ENDOPT
Endopt
Specifies the operation that is automatically performed on the tape volume after the operation ends. If more than one volume is included, this parameter applies only to the last tape volume used; all other tape volumes are rewound and unloaded when the end of the tape is reached.
Allowed values:
*REWIND, *LEAVE, *UNLOAD
*REWIND- The tape is automatically rewound, but not unloaded, after the operation has ended.
*UNLOAD- The tape is automatically rewound and unloaded after the operation ends.
Examples
DSPTAP DEV(QTAPE2) LABEL(*ALL)
This command displays the volume label and file labels on the tape volume that is on the tape device named QTAPE2.
Generated from os/cl/catalog/DSPTAP.json and os/cl/help/DSPTAP.json.