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 happens in conversion stage in job processing?
what is the difference between JES3 and JES2?
What is the significance of addrspc parameter in the exec statement?
what JCL Procedures?
How can unused space allocation be returned to the system when a dataset is closed?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
Is automatic restart possible in jcl?
List the various advantages of using jcl language?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
I need exexution process for JCL programs
What does a disposition of (new,catlg,keep) for a dsn mean?
How would you understand error(execution phase)?
What is use of restart and how to use it?
What parameter of the job statement is used to limit the cpu time consumed by the job?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?