Deleting non-SMS-managed data sets from migration volumes

You can use the MIGRATE command to delete obsolete non-SMS-managed data sets from migration volumes. The forms of the command to delete data sets are:
MIGRATE VOLUME(volser DELETEBYAGE(days))

MIGRATE VOLUME(volser DELETEIFBACKEDUP(days))

If you specify DELETEBYAGE, DFSMShsm deletes any non-SMS-managed data set that has not been opened for more days than is specified by DELETEBYAGE(days) from the migration volume. It does not delete any data set that has not passed the expiration date indicated in the data set's VTOC entry.

If you specify DELETEIFBACKEDUP, DFSMShsm deletes any non-SMS-managed data set that has a valid backup version and that has not been opened for more days than is specified by DELETEIFBACKEDUP(days). DFSMShsm also marks the latest valid backup copy as a retired version. This command deletes the data set regardless of whether the data set has passed the expiration date indicated in the data set's VTOC entry.