Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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).
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
DEV | Device | Name | Required, Positional 1 |
VOL | Volume identifier | Character value, *MOUNTED | Optional |
LABEL | File label | Character value, *ALL | Optional |
SEQNBR | Sequence number | Single values: *ALL Other values: Element list |
Optional |
Element 1: Starting file sequence number | 1-16777215, *FIRST | ||
Element 2: Ending file sequence number | 1-16777215, *ONLY, *LAST | ||
DATA | Data type | *LABELS, *SAVRST | Optional |
OUTPUT | Output | *, *PRINT, *OUTFILE | Optional |
ENDOPT | End of tape option | *REWIND, *UNLOAD | Optional |
OUTFILE | File to receive output | Qualified object name | Optional |
Qualifier 1: File to receive output | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
OUTMBR | Output member options | Element list | Optional |
Element 1: Member to receive output | Name, *FIRST | ||
Element 2: Replace or add records | *REPLACE, *ADD |
Top |
Specifies the name of the tape or media library device in which the volume being shown is placed.
This is a required parameter.
Top |
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.
Top |
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.
Top |
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.
Single values
Element 1: Starting file sequence number
Element 2: Ending 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.
Top |
Specifies the type of information that is shown.
Top |
Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.
Top |
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.
Top |
Specifies the qualified name of the database file to which the information about the tape files is directed. If the file does not exist, this command creates a database file in the specified library. If a new file is created, the system uses QATADOF in QSYS as a model with the format name of QTADOUTF.
Note: This parameter is valid only when OUTPUT(*OUTFILE) and DATA(*LABELS) is specified.
Qualifier 1: File to receive output
Qualifier 2: Library
Top |
Specifies the name of the database file member to which the output is directed when OUTPUT(*OUTFILE) is specified.
Element 1: Member to receive output
Element 2: Replace or add records
Top |
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.
Top |
*ESCAPE Messages
Top |