User Guide
6-34  Ampex 1308911-02
Model No.
Running Head
dd2_query_tape DD-2 Utilities Manual Pages
ENVIRONMENT 
The $TAPE environment variable specifies the tape device to use if the 
-f <device_special_file> option is omitted. 
EXIT STATUS 
The dd2 utilities use the following exit status codes, and may also produce output to -stdout 
on success: 
0 Operation succeeded.
nonzero Operation failed.
A nonzero return value describes the error encountered error during processing (see “Exit 
Status” on page 6-5).
EXAMPLES 
1. Display the volume ID of the tape in the drive. 
dd2_query_tape -stdout ’%volid’
For the volume with ID VOL1, this produces: 
VOL1
2. Display the A partition size and count. 
dd2_query_drive -stdout ’Asize: %(asize), Acount: %(acount)’
This produces output similar to the following: 
Asize: 235, Acount: 1
SEE ALSO 
dd2_format_tape, “DD-2 Utilities Overview” on page 6-1, dd2_query_drive, dst_status() 
DST SCSI Tape Drive DD-2 Tape Format Guide 










