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 |
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
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?
how to allocate a dynamic dataset in jcl ?
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?
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 ?
How to copy VSAM files without using REPRO
how can we override data definitions in jcl. can any one give detailed example
When will we need to specify Space parameter ?
What is a GDG? How is it referenced? How is it defined? What is a MODELDSCB?
What does a disposition of (MOD,DELETE,DELETE) mean ?
What happens if both JOBLIB and STEPLIB is specified ?
How does jcl act on a cobol code?