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
Explain how can the submitting users racf authority be overridden in a job stream?
Which dd parameters are required?
Explain how can return codes be tested before execution of a job step?
Is acct parameter mandatory?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
Can an individual step be restricted from using all the jobs allowed cpu time?
How would you understand error(execution phase)?
How do you overcome this limitation ?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
In job processing, what happens in conversion stage?
What is condition checking in jcl? Is this possible?
Matching Logic in Jcl not in cobol.Could any one please answer this question
how JCL works?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
when does a dataset go uncataloged?