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

Name the parameters which can be used to limit the number of records written to a sysout dataset?

0 Answers  


Can we give two user name in NOTIFY parameter in JOBCARD

1 Answers   Syntel,


Is there a way to check for an empty file in JCL other than using IEBCOMPR and the command PRINT COUNT(1)?

8 Answers  


How to do automated restart when a job abend?

0 Answers  


What does the one advantange of using IEBUPDTE?????

2 Answers  






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?

10 Answers   iGate,


whats SOC7?

1 Answers   Patni,


i have records from 1 t0 100 . i need to open records from 10 to 18 and change the values in tht ? how can i do tht ?

2 Answers   Syntel,


i want to avoid the positional parameter how to code it ?

3 Answers   TCS,


I have two input SORTIN files and We need to create one SORTOUT file which contains data of both input files. What is the SortCard for this?. Suppose the length of the both files are different, then How we do it? Please reply ASAP

4 Answers   CSC,


I have 15 flat files. each record in the files have the monthly salary for 12 months with the employee number. Now I want to concatenate the 15 files such that for the employee numbers that are common the o/p file should have only one record and the salaries should be concatenated to that record. How can we do it with JCL?

1 Answers  


//step#3 exec pgm = hkbc762 what is wrong with the syntax?

3 Answers  


Categories