This example includes a job step from one job and excludes a job
step from another job. The input data set contains three jobs: JOBA,
which includes STEPA, STEPB, STEPC, and STEPD; JOBB, which includes
STEPE, STEPF, and STEPG; and JOBC, which includes STEPH and STEPJ.
//EDIT3 JOB ...
//STEP1 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=A
//SYSUT1 DD DSNAME=INSET,UNIT=disk,DISP=(OLD,KEEP),
// VOLUME=SER=111111
//SYSUT2 DD DSNAME=OUTTAPE,UNIT=tape,LABEL=(,NL),
// DCB=(DEN=2,RECFM=FB,LRECL=80,BLKSIZE=8160),
// DISP=(,KEEP)
//SYSIN DD *
EDIT START=JOBB,TYPE=INCLUDE,STEPNAME=(STEPF-STEPG)
EDIT START=JOBC,TYPE=EXCLUDE,STEPNAME=STEPJ
/*
The control statements are as follows:
- SYSUT1 DD defines the input data set, INSET. The data set resides
on a disk volume (111111).
- SYSUT2 DD defines the output data set, OUTTAPE. The data set is
to reside as the first or only data set on an unlabeled (800 bits
per inch) tape volume.
- SYSIN DD defines the control data set, which follows in the input
stream.
- The EDIT statements copy JOB statements and job steps as follows:
- The JOB statement and steps STEPF and STEPG for JOBB.
- The JOB statement and STEPH, excluding STEPJ, for JOBC.