IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need the JCL to list Tape informations


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sandygirl

New User


Joined: 13 Sep 2006
Posts: 1

PostPosted: Wed Sep 13, 2006 11:40 pm
Reply with quote

Anyone know the JCL to list Tape info? I have over 200 volumes of which I need the DSN's.

Tx
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Wed Sep 13, 2006 11:57 pm
Reply with quote

These used to work years ago. You need to code the VOLSER where the ?????? are. The DSN should not matter although you may need a valid HLQ for your office. You need to use the UNIT parameter that your office typically uses (like UNIT=TAPE, UNIT=TP6250, UNIT=TP9TRK, etc.). The output file (SYSUT2) should print the dataset name on the label of the tape. Each tape dataset is made up of HEADER/DATE/TRAILER, so (1,BLP) will make the program read and print the HEADER. The dataset name that is printed may only show the last 17 positions of the DSN. Also, if you have multiple datasets on a tape, you will need (4,BLP) to READ the 2nd one, (7,BLP) to read the 3rd one, etc.

Code:

//COPY     EXEC PGM=IEBGENER                                   
//SYSPRINT DD SYSOUT=*                                         
//SYSUDUMP DD SYSOUT=*                                         
//SYSUT1   DD DSN=HLQ.TAPE.DATASET.NAME,VOL=SER=??????,       
//            UNIT=TAPE,DISP=OLD,LABEL=(1,BLP,EXPDT=98000),   
//            DCB=(RECFM=U,BLKSIZE=32760)                     
//SYSUT2   DD SYSOUT=*                                         
//SYSIN    DD DUMMY                                           
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Thu Sep 14, 2006 12:00 am
Reply with quote

My comment about a tape dataset should have been that it is made up of HEADER/DATA/TRAILER.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Deleting a Tape file JCL & VSAM 14
No new posts Build dataset list with properties us... PL/I & Assembler 4
No new posts list pds members name starting with xyz CLIST & REXX 11
No new posts List of quiesced jobs JCL & VSAM 3
Search our Forums:

Back to Top