Tape Label Display

Document ID : KB000076804
Last Modified Date : 10/04/2018
Show Technical Document Details
Question:
I am getting NOT SCRTCH (28) errors on tapes, and I would like to display the actual tape label information. Is there a utility in CA-1 or any other method to display label information?
Environment:
R 14.0
Answer:
In order to read the header information, TAPEMAP can be used to perform this function. The TAPEMAP member can be found in the CTAPJCL library and the member is named CTSJTMAP.

Note* If two outputs are given, examine the larger output which should have the DSN's towards the bottom of the output.

Alternatively, you can run the following IEBGENER below which will reference the tape as LABEL=(1,BLP,EXPDT=98000) and it will print off the first label on the tape.

 //STEP01  EXEC PGM=IEBGENER                                    
//SYSIN     DD DUMMY                                           
//SYSUT2    DD  SYSOUT=*                    
//SYSUT1    DD DSN=YOUR.DATA.SET.NAME,UNIT=XXXX,
//          LABEL=(1,BLP,EXPDT=98000),
//          DISP=SHR
//SYSPRINT  DD SYSOUT=*                                     
Additional Information:
CTSTMAP will list all files on the tape.
IEBGENER will list only the first file as the example is coded.