Delete a Tape Volume Entry: Example 18

This example deletes a tape volume entry.
//DELVOL     JOB     ...
//STEP1      EXEC   PGM=IDCAMS
//SYSPRINT   DD     SYSOUT=A
//SYSIN      DD     *
   DELETE (VAL0001) -
             VOLUMEENTRY -
             PURGE
/*
This command's parameters are:
  • VAL0001 is the name of the tape volume entry that is to be deleted. This tape volume entry's volser is AL0001.
  • VOLUMEENTRY specifies that a tape volume entry is to be deleted.
  • PURGE specifies that the volume entry is to be deleted regardless of the expiration date.