If a job has 3 steps and step 1 and step 3 should get
executed and step 2 should not get executed irrespective of
the return code from the previous steps. How can it be done?

Answer Posted / ramesh

Use IEBEDIT to skip step 2 and execute step1 and step3 as below
//XXXXXXXX JOB (XXX),'XXXXXXXXXXXXXXXXX',MSGLEVEL=(1,1),
// CLASS=D,PRTY=5,MSGCLASS=T,NOTIFY=&SYSUID
//STEP01 EXEC PGM=IEBEDIT
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=XXXXXXXX.XXXX.XXXX(MEMBER NAME),DISP=SHR

//SYSUT2 DD SYSOUT=(A,INTRDR)
//SYSIN DD *
EDIT TYPE=EXCLUDE,STEPNAME=(STEP01,STEP05)
/*

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the resolution for sb37 error

7694


define cond parameter in jcl?

771


Explain the purpose of dd dummy statement?

667


What are steplib and joblib?

717


Is automatic restart possible in jcl?

728






Explain the job statement in jcl?

642


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

927


What is the function of dd name parameter with a 2 part structure; audit.report?

698


What are the utility programs in jcl?

645


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

741


What is use of restart and how to use it?

759


what are JCLLIB and STEPLIB in JCL?

670


Explain the function of the dd dcb keyword?

694


What is the function of the steplib dd statement?

735


write a jcl to execute a job by 7:00 am on jan 20,1986?

693