Examples of how to code the FREEVOL command

Coding of the FREEVOL command is demonstrated in the examples that follow.

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

Moving migration copies from one migration volume to other migration volumes

In this example, migration copies of SMS-managed data sets are moved from a specific migration volume to migration level 1 or migration level 2 DASD volumes based on their management class attributes. Non-SMS-managed data sets are moved from a specific migration volume to migration level 2 DASD volumes.
   FREEVOL MIGRATIONVOL(MIG100) TARGETLEVEL(ML2(DASD))

Moving backup versions from one backup volume to tape

In this example, backup versions are moved from a specific backup volume to spill tape volumes.
   FREEVOL BACKUPVOL(BACK01) TARGETLEVEL(SPILL(TAPE))

Moving backup versions selectively

In this example, backup versions are moved from a specific backup volume to the type of volumes set up by the SETSYS SPILL parameter. Backup versions are moved if they were created 30 or more days ago. Backup versions that are the most recently created copies of their source data sets remain on the volume and are not affected by the AGE parameter.
   FREEVOL BACKUPVOL(BACK02) AGE(30) RETAINNEWEST

Moving backup versions from ML1 volumes

In this example, backup versions are moved from all ML1 volumes to daily backup volumes.
   FREEVOL ML1BACKUPVERSIONS