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 are the utility programs in jcl?
What are s0c1, s0c4, s0c5, s0c7 and socb?
What is use of restart and how to use it?
What is the purpose of disp parameter?
What is the function of the dd dcb keyword?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
what is the purpose of coding notify parameter in job statement?
in ways data can be passed to a COBOL program from JCL?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
how to run batch program without jcl?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
which utility is used to run a cobol-db2 program?