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


Example 7: Rename a Partitioned Data Set Member

z/OS DFSMSdfp Utilities
SC23-6864-00

In this example, a member of a partitioned data set is renamed.
  //REN      JOB  ...
  //STEP1    EXEC PGM=IEHPROGM
  //SYSPRINT DD  SYSOUT=A
  //DD1      DD  VOL=SER=222222,DISP=OLD,UNIT=disk
  //SYSIN    DD  *
     RENAME VOL=disk=222222,DSNAME=DATASET,NEWNAME=BC,MEMBER=ABC
  /*
The control statements are discussed below:
  • DD1 DD defines a permanently mounted volume.
  • SYSIN DD defines the input data set, which follows in the input stream.
  • RENAME specifies that member ABC in the partitioned data set DATASET, which resides on a disk volume, is renamed BC.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014