i have 10 steps in jcl program but i have to exicute only
2,4,6,8th and 10th ?how it's possible?

Answer Posted / raghavendra

Use Restart=step2 command in job card, then use COND=(0.LE) in steps 3,5,7,9 to skip (this cond parameter will the skip the steps only if previous steps ended with CC=0)

//Jobid job (t,aa,sys),'acct',class= , msgclass= ,region=0M,restart = step2
//*
//step1 exec
//step2 exec pgm=xxx
//step3 exec pgm=xxx,cond=(0,le)
//step4 exec
//step5 exec pgm=xxx,cond=(0,le)
//step6 exec
//step7 exec pgm=xxx,cond=(0,le)
//step8 exec
//step9 exec pgm=xxx,cond=(0,le)
//step10 exec

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to do automated restart when a job abend?

774


Explain dd statement in jcl?

626


How gdg are concatenated?

657


what are JCLLIB and STEPLIB in JCL?

654


How can an in-stream dataset be terminated?

834






What do you know about jcl?

632


What is use of restart and how to use it?

751


What is the function of dd disp parameter?

646


What is the function of //cntl statement?

816


Give the syntax of job specifying jcl statement.

622


How can values be passed from the job stream to an executable program?

860


can any one plzzzzzz tell the jcl code for creating ps using idcams

10468


Is condition checking possible in jcl?

701


Explain the function of the dd dcb keyword?

684


how JCL works?

781