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


Example 3: Rename a Multi-Volume Data Set Catalog

z/OS DFSMSdfp Utilities
SC23-6864-00

In this example, the name of a data set is changed on two mountable volumes. The old data set name is removed and the data set is cataloged under its new data set name.
  //RENAMEDS JOB  ...
  //STEP1    EXEC PGM=IEHPROGM
  //SYSPRINT DD  SYSOUT=A
  //DD1      DD  VOLUME=SER=111111,UNIT=disk,DISP=OLD
  //DD2      DD  UNIT=(disk,,DEFER),DISP=OLD,
  //             VOLUME=(PRIVATE,SER=(222222,333333))
  //SYSIN    DD  *
    RENAME   DSNAME=A.B.C,NEWNAME=NEWSET,VOL=disk=(222222,333333)
    UNCATLG  DSNAME=A.B.C
    CATLG    DSNAME=NEWSET,VOL=disk=(222222,333333)
  /*
The control statements are discussed below:
  • RENAME specifies that data set A.B.C, which resides on volumes 222222 and 333333, is to be renamed NEWSET.
  • UNCATLG specifies that data set A.B.C is uncataloged.
  • CATLG specifies that NEWSET, which resides on volumes 222222 and 333333, is cataloged.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014