In this example, a partitioned data set is moved to a disk volume
on which space has been previously allocated for the data set. The
source data set is scratched.
//MOVEPDS JOB ...
//STEP1 EXEC PGM=IEHMOVE
//SYSPRINT DD SYSOUT=A
//SYSUT1 DD UNIT=disk,VOLUME=SER=222222,DISP=OLD
//DD1 DD UNIT=disk,VOLUME=SER=111111,DISP=OLD
//DD2 DD UNIT=disk,VOLUME=SER=222222,DISP=OLD
//DD3 DD UNIT=disk,VOLUME=SER=333333,DISP=OLD
//SYSIN DD *
MOVE PDS=PDSSET1,TO=disk=222222,FROM=disk=333333
/*
The control statements are discussed below:
- SYSUT1 DD defines the device that is to contain the work data
set.
- DD1 DD defines the system residence device.
- DD2 DD defines the device on which the receiving volume is to
be mounted.
- DD3 DD defines a device on which the source volume is mounted.
- SYSIN DD defines the control data set, which follows in the input
stream.
- MOVE specifies a move operation for the partitioned data set PDSSET1
and defines the source and receiving volumes.