TARGETLEVEL: Specifying the target to which data sets are moved

Explanation: TARGETLEVEL specifies the level and the unit type for migration copies that are eligible to be moved.

For SMS-Managed Migrated Data Sets: The target levels of MIGRATIONLEVEL1 and MIGRATIONLEVEL2 do not apply because their target levels are determined by management class as described in the AGE parameter description. The device category of DASD or TAPE applies only to those SMS-managed data sets migrating to ML2:
Subparameter Explanation
DASD TARGETLEVEL (MIGRATIONLEVEL2 (DASD)) specifies that the eligible data sets migrate from MIGRATIONVOLUME(volser) to DASD migration level 2 volumes.
TAPE TARGETLEVEL (MIGRATIONLEVEL2 (TAPE)) specifies that the eligible data sets migrate from MIGRATIONVOLUME(volser) to tape migration level 2 volumes.
For Non-SMS-Managed Migrated Data Sets: The TARGETLEVEL (MIGRATIONLEVEL1 | MIGRATIONLEVEL2 (TAPE | DASD)) parameters apply to these migrated data sets.
Subparameter Explanation
MIGRATIONLEVEL1 TARGETLEVEL (MIGRATIONLEVEL1) specifies that volumes defined as migration level 1 receive migrated data sets from MIGRATIONVOLUME(volser).
MIGRATIONLEVEL2 TARGETLEVEL (MIGRATIONLEVEL2) specifies that volumes defined for migration level 2 receive migrated data sets from MIGRATIONVOLUME(volser).

TARGETLEVEL (MIGRATIONLEVEL2 (DASD)) specifies that the eligible data sets migrate from MIGRATIONVOLUME(volser) to DASD migration level 2 volumes.

TARGETLEVEL (MIGRATIONLEVEL2 (TAPE)) specifies that the eligible data sets migrate from MIGRATIONVOLUME(volser) to tape migration level 2 volumes.

For BACKUP Data Sets: The TARGETLEVEL(SPILL(TAPE | DASD)) parameters are used to specify the level and the unit type for backup versions eligible to be moved. The device category applies to all data sets moving to SPILL backup volumes:
Subparameter Explanation
DASD TARGETLEVEL(SPILL(DASD)) specifies that the eligible data sets move from BACKUPVOLUME(volser) to DASD spill backup volumes.
TAPE TARGETLEVEL(SPILL(TAPE)) specifies that the eligible data sets move from BACKUPVOLUME(volser) to tape spill backup volumes.

Defaults: If you do not specify either DASD or TAPE, the default is the type of migration set up by the SETSYS command. For migration volumes, the TAPEMIGRATION parameter is used to set up this default. For backup volumes, the SPILL parameter is used.

Note:
  1. If MIGRATIONVOLUME and TARGETLEVEL are the same level, the current source volume (MIGRATIONVOLUME(volser)) is excluded from the target volume selection process.
  2. If the source volume you specified is a migration level 2 volume, the specification of a target level migration level 1 volume is invalid.
  3. If you do not specify TARGETLEVEL, migration copies of non-SMS-managed data sets are moved to migration level 2 volumes.
  4. If you specify either DASD or TAPE, the one selected overrides the environment specified with the SETSYS TAPEMIGRATION command or the SETSYS SPILL command.
  5. After a FREEVOL command has been processed against a migration level 2 volume with an associated key range, that volume must be further processed by a DELVOL and an ADDVOL command in order to become eligible again as a target volume for that key range.