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:
Indicates that a data set is to be moved between disk packs.
The name of the PDS or sequential data set to be moved.
The name of the disk pack to which the data set will be moved.
Specifies the type of data set to be allocated to the SYSPRINT DD for the copy operation.
Specifies whether to display the output on completion of the function. This operand is only valid if SYSPRINT=DSN is specified. If DISPLAY=YES is specified, a full-screen display of the SYSPRINT data set is presented after the copy operation has completed.
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. |
|