Delete a Tape Library Entry: Example 17

This example deletes a tape library entry. Because the FORCE parameter was not used, the tape library entry ATLLIB1 is deleted only if no tape volume entries are associated with it.
//DELLIB     JOB     ...
//STEP1      EXEC   PGM=IDCAMS
//SYSPRINT   DD     SYSOUT=A
//SYSIN      DD     *
     DELETE (ATLLIB1) -
             LIBRARYENTRY
/*
This command's parameters are:
  • ATLLIB1 is the name of the tape library entry that is to be deleted.
  • LIBRARYENTRY specifies the type of entry to be deleted.