Ques: How can we code COND parameter in a JCL so that only
even steps (or only odd steps) get execute??

Answers were Sorted based on User's Feedback



Ques: How can we code COND parameter in a JCL so that only even steps (or only odd steps) get exec..

Answer / 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

Ques: How can we code COND parameter in a JCL so that only even steps (or only odd steps) get exec..

Answer / vinodh

Your answer is correct!!

Is This Answer Correct ?    2 Yes 1 No

Ques: How can we code COND parameter in a JCL so that only even steps (or only odd steps) get exec..

Answer / muttaiah

Thanks much vinodh, The person's who mentioned as "No" can
you people give an explanation why is it so?
Because i want to know whether what i told is correct or
not.
From my perspective whatever i told is 100% damn correct.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More JCL Interview Questions

How can a job send a status message to a tso user at the completion of a job?

1 Answers  


what is static and dynamic call with examples?

4 Answers   IBM,


Explain how can an in-stream dataset be terminated?

0 Answers  


i have step1,step2,step3 from where can i start coding cond parameter ?

2 Answers   Verizon,


How to copy one PS file to multiple PS files with same data?

1 Answers  






what is a MODELDSCB?

1 Answers  


what are the options in file-aid to edit vsam dataset and to compare data sets.

2 Answers   Ocwen,


which utility is used a dummy utility?

0 Answers   IBM,


How Can we see all generations of a GDG ?

3 Answers   Polaris,


How can an in-stream dataset be terminated?

0 Answers  


hi friends........if u know syntax of IEBEDIT IN JCL

2 Answers  


whats the diff bw the evaluate also and and?

0 Answers   CGI,


Categories