The following examples show different ways to code the MIGRATE
command.
Note: Any values specified here are only examples and should
not be interpreted as the values to be used for your system.
Migration of all the data sets from a volume
In this example, migration is requested for all the data sets on
the primary volume.
MIGRATE VOLUME(PRIM03 MIGRATE(0))
The following command also migrates all data sets from a primary
volume:
MIGRATE VOLUME(PRIM01) DAYS(0)
Migration of data sets based on the number of elapsed
days since the data set was last referred to
In this example, migration is requested for data sets that reside
on the primary volume and have not been referred to for at least five
days.
MIGRATE VOLUME(PRIM01 MIGRATE(5))
Direct migration of a data set to a level 2 volume
In this example, the specified data set migrates directly to a
migration level 2 volume.
MIGRATE DATASETNAME(FET7603.JOB33.LOAD) MIGRATIONLEVEL2
Migration of data sets from a volume not managed by DFSMShsm
In this example, migration is attempted for all the data sets that
meet the DAYS criterion of the SETSYS command and reside on a volume
not managed by DFSMShsm.
MIGRATE VOLUME(MSS004) UNIT(3390)
Data set deletion of eligible data sets on a volume
In this example, all eligible data sets on the primary volume that
have not been referred to for at least 20 days and whose expiration
dates have been reached are scratched.
MIGRATE VOLUME(VOL005 DELETEBYAGE(20))
Moving all data sets from a volume not managed by DFSMShsm
to primary volumes
In this example, all DFSMShsm-supported data sets on a volume not
managed by DFSMShsm move to primary volumes that allow automatic recall.
MIGRATE VOLUME(VOL081 MIG(0)) UNIT(3390) CONVERT
Moving all data sets from a primary volume
In this example, you want to remove all data sets from a primary
volume.
MIGRATE VOLUME(ONVOL MIG(0)) CONVERT
Moving data sets from a primary volume to another primary
volume
In this example, the volume was added to control of DFSMShsm with
the space management technique of MIGRATE. The target volume is a
volume managed by DFSMShsm. All supported data sets that have not
been referred to in the last five days are moved from the 3380 volume
(USER80) to the target 3390 volume (NEW90).
MIGRATE VOLUME(USER80 MIGRATE(5)) CONVERT(NEW90)
Moving one data set from one primary volume to another
primary volume
In this example, one data set is moved from a volume to another
primary volume without setting up an IEHMOVE utility job.
MIGRATE DATASETNAME(MYDS) CONVERT
You could issue this command to cause extent reduction or to move
this data set from a full volume to another volume whose free space
is in less demand.
Migration of data sets from all migration level 1 volumes
In this example, migration is requested for the data sets on all
migration level 1 volumes that have not been referred to for at least
two days.
MIGRATE MIGRATIONLEVEL1 DAYS(2)
Data set deletion of a tape migration level 2 volume
In this example, data set deletion is requested for the data sets
on a tape migration level 2 volume that have not been referred to
for 30 days and whose expiration dates have been reached.
MIGRATE VOLUME(M2TP04 DELETEBYAGE(30))
Data set retirement of a migration level 1 volume
In this example, data set retirement is requested for the data
sets on a migration level 1 volume that have not been referred to
for 45 days and that have a current backup version.
MIGRATE VOLUME(ML1003 DELETEIFBACKEDUP(45))