How to create Index Listings for Librarian Backup Tapes?
The sample JCL to create the index listings for Librarian backup tapes is listed below:
//TAPINDEX EXEC PGM=AFOLIBR,PARM='NRJS,NJTA' //STEPLIB DD DSN=YOUR.XXXX.XXXX.CAILIB,DISP=SHR //SYSPRINT DD SYSOUT=* //OSJOB DD DUMMY //SYSAF01 DD UNIT=SYSDA,SPACE=(TRK,(1,1)) //SYSAF02 DD UNIT=SYSDA,SPACE=(TRK,(1,1)) //SYSAF03 DD UNIT=SYSDA,SPACE=(TRK,(1,1)) //INDEX DD SYSOUT=* //MASTIN DD DSN=YOUR.XXXX.BKUPTAPE,UNIT=VTAPE,DISP=SHR //MASTOUT DD DUMMY //SYSIN DD * -OPT NOCYCLE,NOOUTPUT -OPT INDEX -END
Note: If you specify -OPT BKUPTAPE,INDEX you will get the report at the time the BKUPTAPE is done.