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 to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

0 Answers   CSC, SPIC,


i have 10,000 records in one input file.i want to sort 1 to 5000 records in one outputfile and remaining records sort in another output file write the syntax for this?

4 Answers   DELL,


how to allocate a dynamic dataset in jcl ?

3 Answers   Patni, TCS,


I have a JCL with 10 steps, want to execute first 5 steps only, what are ways of doing it?is it possible to control through JOB card?

5 Answers   iGate,


FOR a GDG, the book by 'SABA ZAMEER' says 'We can NOT ALTER the LIMIT parameter after it is defined'. (p-211). But many persons have written that it can be changed, which one is true ?

4 Answers   IBM,






How to copy VSAM files without using REPRO

3 Answers   ADP,


how can we override data definitions in jcl. can any one give detailed example

3 Answers   TCS,


When will we need to specify Space parameter ?

3 Answers   Wipro,


What is a GDG? How is it referenced? How is it defined? What is a MODELDSCB?

3 Answers  


What does a disposition of (MOD,DELETE,DELETE) mean ?

0 Answers  


What happens if both JOBLIB and STEPLIB is specified ?

8 Answers  


How does jcl act on a cobol code?

0 Answers  


Categories