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


Example 1: Copy One Job

z/OS DFSMSdfp Utilities
SC23-6864-00

In this example, one job (JOBA), including all of its job steps, is copied into the output data set. The input data set contains three jobs: JOBA, JOBB and JOBC.
 //EDIT1    JOB  ...
 //STEP1    EXEC PGM=IEBEDIT
 //SYSPRINT DD  SYSOUT=A
 //SYSUT1   DD  DSNAME=INJOBS,UNIT=tape,
 //             DISP=(OLD,KEEP),VOL=SER=001234
 //SYSUT2   DD  DSNAME=OUTTAPE,UNIT=tape,DISP=(NEW,KEEP),
 //             VOL=SER=001235,DCB=(RECFM=FB,LRECL=80,BLKSIZE=80),
 //SYSIN    DD  *
          EDIT  START=JOBA
 /*
The control statements are as follows:
  • SYSUT1 DD defines the input data set, INJOBS. The data set resides on a standard labeled tape volume (001234).
  • SYSUT2 DD defines the output data set, called OUTTAPE. The data set is to reside as the first data set on a standard labeled tape volume (001235). The system will select an optimal block size.
  • SYSIN DD defines the control data set, which follows in the input stream.
  • EDIT indicates that JOBA is to be copied in its entirety.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014