z/OS DFSMSdfp Utilities
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example 2: Move Partitioned Data Set to Disk Volume and Merge

z/OS DFSMSdfp Utilities
SC23-6864-00

In this example, a partitioned data set (PARTSET1) is moved to a disk volume. In addition, a member (PARMEM3) from another partitioned data set (PARTSET2) is merged with the source members on the receiving volume. The source partitioned data set (PARTSET1) is scratched. Space is allocated by IEHMOVE.
  //MOVEPDS  JOB  ...
  //STEP1    EXEC PGM=IEHMOVE
  //SYSPRINT DD  SYSOUT=A
  //SYSUT1   DD  UNIT=disk,VOLUME=SER=333000,DISP=OLD
  //DD1      DD  UNIT=disk,VOLUME=SER=111111,DISP=OLD
  //DD2      DD  UNIT=disk,VOLUME=SER=222111,DISP=OLD
  //DD3      DD  UNIT=disk,VOLUME=SER=222222,DISP=OLD
  //DD4      DD  UNIT=disk,VOLUME=SER=222333,DISP=OLD
  //SYSIN    DD  *
       MOVE   PDS=PARTSET1,TO=disk=222333,FROM=disk=222111
    INCLUDE   DSNAME=PARTSET2,MEMBER=PARMEM3,FROM=disk=222222
  /*
The control statements are discussed below:
  • SYSUT1 DD defines the disk volume that is to contain the work data set.
  • DD1 DD defines the system residence device.
  • The DD2, DD3, and DD4 DD statements define devices that are to contain the two source volumes and the receiving volume.
  • SYSIN DD defines the control data set, which follows in the input stream.
  • MOVE defines the source partitioned data set, the volume that contains it, and its receiving volume.
  • INCLUDE includes a member from a second partitioned data set in the operation.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014