Using IEBEDIT utility you can take control of the steps that has to be executed in a job. You have the option of executing selective steps and also few steps can be skipped. The below is a sample JCL which skips STEP04 in a job
//JOBCARD
// EXEC PGM=IEBEDIT
//SYSUT1 DD DSN=JOBS.ALL(JOB001),DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSIN DD *
EDIT TYPE=EXCLUDE,STEPNAME=(STEP04)
/*
//SYSPRINT DD SYSOUT=*
EDIT TYPE=EXCLUDE will exclude a particular step of a job from execution and if many steps has to excluded it can be done by separating the step names with comma.
EDIT TYPE=INCLUDE will allow only that step to be executed.
INTRDR - refers to internal reader where all jobs are submitted for execution
//JOBCARD
// EXEC PGM=IEBEDIT
//SYSUT1 DD DSN=JOBS.ALL(JOB001),DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSIN DD *
EDIT TYPE=EXCLUDE,STEPNAME=(STEP04)
/*
//SYSPRINT DD SYSOUT=*
EDIT TYPE=EXCLUDE will exclude a particular step of a job from execution and if many steps has to excluded it can be done by separating the step names with comma.
EDIT TYPE=INCLUDE will allow only that step to be executed.
INTRDR - refers to internal reader where all jobs are submitted for execution
No comments:
Post a Comment