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
Which dd parameters are required?
Is their any set of rules for dd? Explain.
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
How do you create a temporary dataset?
what happens in execution stage in job processing?
What is the maximum length of a single line of jcl?
which utility is used to sort a file in jcl?
Why block size is multiple of lrecl in jcl?
Explain how can the attributes of one sms dataset be copied to another dataset?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
Explain how can a stopped job be started again?
What is job control language?
Is automatic restart possible in jcl?
What is the purpose of dd dummy statement?
What is the significance of addrspc parameter in exec statement?