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
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 |
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 |
Name the parameters which can be used to limit the number of records written to a sysout dataset?
Can we give two user name in NOTIFY parameter in JOBCARD
Is there a way to check for an empty file in JCL other than using IEBCOMPR and the command PRINT COUNT(1)?
How to do automated restart when a job abend?
What does the one advantange of using IEBUPDTE?????
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?
whats SOC7?
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 ?
i want to avoid the positional parameter how to code it ?
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
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?
//step#3 exec pgm = hkbc762 what is wrong with the syntax?