Previous Topic: IBM BTLS Insert TapesNext Topic: IBM BTLS - Eject Cartridges


IBM BTLS - Synchronize the IBM ATL and TMC

On an occasional basis (once a week or once a month) it is a good idea to synchronize the BTLS and the Tape Management Catalog. This can be done by creating an inventory (LIBOUT DD) of all tapes in the BTLS. This list can then be read as input (CTSINPUT DD) by the new IDCLI04 exit and have the category changed to either PRIVATE, SCRTCH or ERROR.

The following is an example:

//STEP1    EXEC PGM=IDCAMS
//SYSPRINT DD   SYSOUT=A
//LIBOUT   DD   DSN=&.&TEMP.,DISP=(MOD,PASS),
                     DCB=(RECFM=FB,LRECL=80),
//              SPACE=(CYL,(1,1))
//CTSINPUT DD   DSN=*.LIBOUT,DISP=(OLD,PASS)
//SYSIN    DD   *
  LIBRARY INVENTORY UNIT(ALL) CATEGORY(INSERT)
  LIBRARY INVENTORY UNIT(ALL) CATEGORY(SCRTCH)
  LIBRARY INVENTORY UNIT(ALL) CATEGORY(PRIVATE)
  LIBRARY SETCEXIT UNIT(ALL)
/*