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


Example 5: Copy Entire Input Data Set

z/OS DFSMSdfp Utilities
SC23-6864-00

This example copies the entire input data set. The record containing the characters "..*" in columns 1 through 3 is converted to a "/*" statement in the output data set.
 //EDIT5    JOB  ...
 //STEP1    EXEC PGM=IEBEDIT
 //SYSPRINT DD  SYSOUT=A
 //SYSUT2   DD  DSNAME=OUTTAPE,UNIT=tape,
 //             VOLUME=SER=001234,DISP=(NEW,KEEP),
 //             DCB=(RECFM=F,LRECL=80,BLKSIZE=80)
 //SYSIN    DD  DUMMY
 //SYSUT1   DD  DATA
 //BLDGDGIX JOB ...
 //         EXEC PGM=IEHPROGM
 //SYSPRINT DD  SYSOUT=A
 //DD1      DD  UNIT=disk,VOLUME=SER=111111,DISP=OLD
 //SYSIN    DD  *
          BLDG   INDEX=A.B.C,ENTRIES=10,EMPTY
 ..*
 /*
The control statements are as follows:
  • SYSUT2 DD defines the output data set, OUTTAPE. The data set will be the first data set on a tape volume (001234).
  • SYSIN DD defines a dummy control data set.
  • SYSUT1 DD defines the input data set, which follows in the input stream. The job is stopped when the statement "/*" is encountered. (SYSUT1 therefore includes the BLDGDGIX JOB statement, EXEC statement, SYSPRINT, DD1, and SYSIN DD statements.)

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014