Examples of how to code the DELVOL command

The following examples present different ways to code the DELVOL command.

Note: Any values specified here are only examples and should not be interpreted as the values to be used for your system.

Deleting a primary volume

In this example, a primary volume (added using the ADDVOL command or SMS-managed) is deleted from DFSMShsm control.
   DELVOL VOL005 PRIMARY

Deleting a migration level 1 volume

In this example, a migration level 1 volume is deleted from DFSMShsm control.
   DELVOL MIG003 MIGRATION

Marking a migration level 2 tape volume full

In this example, a migration level 2 tape volume is marked full. The MARKFULL parameter does not delete the volume.
   DELVOL MIG003 MIGRATION(MARKFULL)

Unassigning a backup volume

In this example, a backup volume becomes an unassigned backup volume of DFSMShsm.
   DELVOL BAC001 BACKUP(UNASSIGN)

Deleting a tape migration level 2 volume

In this example, a tape migration level 2 volume is purged from DFSMShsm if it does not contain any valid data.
   DELVOL TML203 MIGRATION(PURGE)

Deleting a DASD migration level 2 volume

In this example, a DASD migration level 2 volume is purged from DFSMShsm.
   DELVOL DML201 MIGRATION(PURGE)

Deleting a tape backup volume

In this example, a tape backup volume is deleted from DFSMShsm’s control. All record of any valid backup versions on the tape is also deleted.
   DELVOL TAPE01 BACKUP(PURGE)

Deleting a dump volume

In this example, a dump volume is deleted and its contents are discarded. The volume is made available and is associated with its original dump class.
   DELVOL DUPT01 DUMP(REASSIGN)

Deleting a dump volume that is part of the only valid dump copy of a source volume

In this example, a dump volume is part of the only valid dump copy of a source volume. The volume is made available but is not associated with any dump class.
   DELVOL DUPT02 DUMP(UNASSIGN LASTCOPY)

Purging the records for a dump volume that is part of the only valid dump copy of a source volume

In this example, a dump volume is part of the only valid dump copy of a source volume. The volume is purged from DFSMShsm.
   DELVOL DUPT02 DUMP(PURGE LASTCOPY)

Deleting a copy pool dump volume

In this example, an unneeded dump volume that contains one or more copy pool dump copies is deleted from DFSMShsm control.
   DELVOL DUPT03 DUMP(COPYPOOLCOPY)