$DSCALL OPT=MOVEPACK

Moves a data set to another disk pack.

&CONTROL SHRVARS=($DS)
EXEC $DSCALL    OPT=MOVEPACK 
                DSN=dataset_name VOL=volume_name 
                SYSPRINT={ KEEP | DELETE | DSN } 
                DISPLAY={ YES | NO }

Use this call to move a data set to a specified disk pack. This option is only useful for moving cataloged data sets.

The new data set is cataloged, with the same name, on the specified target disk pack-the data set name cannot be changed. If the target volume is the same as the source disk pack, no action is taken.

For a VSAM data set the IDCAMS utility is used to perform the move. The VSAM data set is exported and then imported on the target volume. The IEHMOVE utility is used for non-VSAM data sets. The data set is moved to the target volume and deleted from the current volume by the IEHMOVE utility. The utility catalogs the data set on the target volume.

Operands:

Return Codes:

Note: For more information about &SYSMSG, &$DSRC, and &$DSFDBK, see Return Codes and Feedback Codes.

Example: OPT=MOVEPACK

EXEC $DSCALL OPT=MOVEPACK DSN=MYDATASET VOL=MVS009


Copyright © 2009 CA. All rights reserved.