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


Example 5: Move and Unload Partitioned Data Sets Volume

z/OS DFSMSdfp Utilities
SC23-6864-00

In this example, three partitioned data sets are moved from three separate source volumes to a disk volume. The source data set PDSSET3 is unloaded. (The record size exceeds the track capacity of the receiving volume.)
  //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,,DEFER),DISP=OLD,
  //             VOLUME=(PRIVATE,,SER=(333333))
  //DD3      DD  UNIT=disk,VOLUME=SER=222222,DISP=OLD
  //SYSIN    DD  *
      MOVE  PDS=PDSSET1,TO=disk=222222,FROM=disk=333333
      MOVE  PDS=PDSSET2,TO=disk=222222,FROM=disk=222222
      MOVE  PDS=PDSSET3,TO=disk=222222,FROM=disk=444444,UNLOAD
  /*

PDSSET1, PDSSET2, and PDSSET3 are already allocated on the receiving volume. PDSSET3 is allocated as a sequential data set; PDSSET1 and PDSSET2 are allocated as partitioned data sets. Since PDSSET3 is moved to a sequential data set, it is unloaded.

For a discussion of estimating space allocations, see z/OS DFSMS Using Data Sets.

The DCB attributes of PDSSET3 are:
 DCB=(RECFM=U,BLKSIZE=5000)
The unloaded attributes are:
 DCB=(RECFM=FB,LRECL=80,BLKSIZE=800)
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 source volumes are mounted as they are required.
  • DD3 DD defines a device on which the receiving volume is mounted.
  • SYSIN DD defines the control data set, which follows in the input stream.
  • MOVE specifies move operations for the partitioned data sets and defines the source and receiving volumes for each data set.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014