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


Example 8: Move Cataloged Data Set Group

z/OS DFSMSdfp Utilities
SC23-6864-00

In this example, the cataloged data set group A.B.C, which comprises data set A.B.C.X, A.B.C.Y, and A.B.C.Z, ,is moved from two disk volumes onto a third volume. Space is allocated by IEHMOVE. The catalog is updated to refer to the receiving volume. The source data sets are scratched.
  //MOVEDSG  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
  //DD4      DD  UNIT=disk,VOLUME=SER=444444,DISP=OLD
  //SYSIN    DD  *
           MOVE   DSGROUP=A.B.C,TO=disk=222222
  /*
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 a device on which the receiving volume is mounted.
  • DD3 DD defines a device on which one of the source volumes is mounted.
  • DD4 DD defines a device on which one of the source volumes is mounted.
  • SYSIN DD defines the control data set, which follows in the input stream.
  • MOVE moves the specified data sets to volume 222222.
This example can be used to produce the same result without the use of the DD4 DD statement, using one less mountable disk device. With DD3 and DD4, both of the source volumes are mounted at the start of the job. With DD3 only, the 333333 volume is mounted at the start of the job. After the 333333 volume is processed, the utility requests that the operator mount the 444444 volume. In this case, the DD3 statement is coded:
  //DD3 DD UNIT=(disk,,DEFER),DISP=OLD,
  //       VOLUME=(PRIVATE,,SER=(333333))

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014