Ques: How can we code COND parameter in a JCL so that only
even steps (or only odd steps) get execute??
Answer Posted / muttaiah
I think in this way you can achieve your requirement.
For ODD steps:
Code cond=(0,LE) or cond=(4096, GT) on all Even steps.
For Even steps:
Give restart=step2 in job card,
Code cond=(0,LE) or cond=(4096, GT) on all Odd steps.
The reason why we are using cond=(0,le) or (4096,GT) is
The cond parameter work's in such a way that if the the
condition is true it will bypass the step on which it is
coded.
here (0,le) or (4096,Gt) is always true so the steps will
bypass(won't execute).
@All: Do correct me if i'm wrong.
Is This Answer Correct ? | 26 Yes | 4 No |
Post New Answer View All Answers
what is SOC4 error?
what sort card you will use to copy the data from one dataset to another dataset?
List the various advantages of using jcl language?
how JCL works?
What are the rules employed while naming the steps in a job?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
what are the statements that are not valid to be included in an include statement?
Are there any set of rules for the names of the steps used in a job? What are they?
Is it possible to code instream data in a PROC?
What is jcl in mainframe?
Name the parameters which can be used to limit the number of records written to a sysout dataset?
What is the purpose of dd * statement in jcl?
Explain the function of //jcllib statement?
For what purpose steplib and joblib are used ?
What is the function of the dd mgmtclas keyword in sms datasets?