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

Where can program checkpoints be stored for use in a restart?

978


How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?

1887


What is condition checking in jcl? Is this possible?

706


How do you create a temporary dataset?

755


What do you understand by the terms: joblib and steplib?

723






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

1030


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

733


What dd statement is used to supply the name of a dataset?

909


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

770


what operation is performed by job statement?

740


How would you understand error(execution phase)?

721


For what purpose steplib and joblib are used ?

760


Where & How Do You Code Identifier In Jcl?

800


What does a disposition of (MOD,DELETE,DELETE) mean ?

763


In job processing, what happens in execution stage?

770