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


Please Help Members By Posting Answers For Below Questions

What are the utility programs in jcl?

646


What are s0c1, s0c4, s0c5, s0c7 and socb?

696


What is use of restart and how to use it?

761


What is the purpose of disp parameter?

635


What is the function of the dd dcb keyword?

820






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?

711


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1342


why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

1942


what is the purpose of coding notify parameter in job statement?

681


in ways data can be passed to a COBOL program from JCL?

661


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?

779


how to run batch program without jcl?

10064


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 ?

9207


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?

1613


which utility is used to run a cobol-db2 program?

801