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 |
what happens if job falls in loop ? how to resolve it ?
How can return codes be tested before execution of a job step?
can we maintain 2 generations with different Lengths in Same GDG ?
1.How to check for the errors using TYPRUN=SCAN?What will be the output if we give TYPRUN=SCAN?
i have 10steps and i want run step3 and based on step3 i want execute step7,8,9,10?in jcl
do we need to mention the location of catalogued procedure for each it's call in a single job?
. What is the difference between the following statements : I) step#1 exec PGM=accpay ii) step#1 exec tbalance
There is one QSAM is the VB file. i want to get the first characters in this file and change those characters from'abcd' to '1234' and creat a vasm file to put '1234' in it. how to do in only JCL. if it not QSAM, it's VASM and VB. how to do it.
I have an job having three job steps.Suppose i want to call a pgm in step2 and aproc in step3.How to write the code?
In Job, there are 10 steps. If I want to execute the first 6 steps and don't want to execute from 7th to 10th step. What is the solution for this ?
difference between internal sort and external sort
How can u know the current date using jcl?