IEBEDIT(Edit Job stream) Utility:
1. It is used to run selected job step(s) in particular JCL.
Ex. I have a JCL with 10 steps and wanted to run only STEP10,
//IEBEDITX JOB (MVSQuest),'IEBEDIT TEST',
// CLASS=N,MSGCLASS=H,NOTIFY=7SYSUID
//*
//SUBMIT EXEC PGM=IEBEDIT
//SYSUT1 DD DSN=USERID.TEST.JCL(JCLINP),DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EDIT START=JOBA,TYPE=INCLUDE,STEPNAME=(STEP10)
//*
1. It is used to run selected job step(s) in particular JCL.
Ex. I have a JCL with 10 steps and wanted to run only STEP10,
//IEBEDITX JOB (MVSQuest),'IEBEDIT TEST',
// CLASS=N,MSGCLASS=H,NOTIFY=7SYSUID
//*
//SUBMIT EXEC PGM=IEBEDIT
//SYSUT1 DD DSN=USERID.TEST.JCL(JCLINP),DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EDIT START=JOBA,TYPE=INCLUDE,STEPNAME=(STEP10)
//*
JCLINP contains 10 steps
START => specifies job name of JCLINP
TYPE=INCLUDE => runs only those steps specified in STEPNAME
If TYPE=EXCLUDE, it runs all the steps except for the one specified in STEPNAME
If i want to run step09 and step10, then
EDIT START=JOBA,TYPE=INCLUDE,STEPNAME=(STEP09,STEP10)
2. Copies the complete job including all its steps to the output data set
EDIT START=JOBA
EDIT START=JOBA
3. Copies different steps from different jobs to output data set
Example: If i have 3 jobs (JOBA, JOBB,JOBC) in input dataset and wanted to copy different steps from all the 3 jobs
EDIT START=JOBA,TYPE=INCLUDE,STEPNAME=(STEPC,STEPD)
EDIT START=JOBB,TYPE=INCLUDE,STEPNAME=STEPE
EDIT START=JOBC,TYPE=INCLUDE,STEPNAME=STEPJ
Example: If i have 3 jobs (JOBA, JOBB,JOBC) in input dataset and wanted to copy different steps from all the 3 jobs
EDIT START=JOBA,TYPE=INCLUDE,STEPNAME=(STEPC,STEPD)
EDIT START=JOBB,TYPE=INCLUDE,STEPNAME=STEPE
EDIT START=JOBC,TYPE=INCLUDE,STEPNAME=STEPJ
No comments:
Post a Comment