How do You skip a Step In JCL?
Answers were Sorted based on User's Feedback
Answer / rajesh_m13
Using COND operator if the condition is true it does not
execute
| Is This Answer Correct ? | 28 Yes | 2 No |
Answer / mohan
we can pass the COND parameter as (0,le) or (4096,ge) to the step which we wann skip from execution.
| Is This Answer Correct ? | 22 Yes | 6 No |
Answer / garry
@Kalpana:
Please do not misguide others, there no reverse direction.
SIMPLE RULE : Condition True = Bypass
Condition False = Execute.
Explanation given by you is not correct.
Anyways, thank you for reply.
Any issue or disagree can write to : gmt360@gmail.com
Garry
| Is This Answer Correct ? | 14 Yes | 2 No |
Answer / vinay sonar
We can do it using COND parameter put a always true
condition such as
COND=(0,le) or COND=(4095,ge)
| Is This Answer Correct ? | 8 Yes | 3 No |
Answer / steve holton
For an unconditional skip step, just remove it completely
from the job stream.
Otherwise, for conditional removal, you can use the COND=
stuff, which I consider to have "reverse logic" also, as
noted by one responder above. I think "reverse" because if
is notmal to think "If the RC is GT 8, SKIP, but the RC and
the "constant" (8, in this case) are backwards, so you have
to say "IF 8 LE RC, then skip to accomplish the same thing.
OR (and I prefer) JCL IF...ELSE ..ENDIF statements, which
uses more straightforward logic, analogous to the
IF/THEN/ELSE logic in programming languages (i.e. IF RC=0
THEN execute to the ELSE or ENDIF, else SKIP TO ELSE or ENDIF.
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / kalpana dwivedi
It is true that step can be skip using condition parameter
but COND=(0,LE) is not correct, as Cond parameter works on
reverse logic.
It should be COND=(0,GE) or (4096,LE)
That means step will not run if return code of previus step
is Greater than equal to zero or if the condition code of
previous step is less than equal to 4096.
| Is This Answer Correct ? | 13 Yes | 17 No |
Can I concatenate various datasets whose organization are different from each other. Lets say I want to cancatenate a PDS file, a PS file, a GDG file etc. Can You do that ?? If yes, how ? is there any separate Utility to do so ???
wht happens if blksize = 0 and lrec = 0 ?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
1)what is compilation jcl for cobol program but it is calling another program 2)what is compilation jcl for cobol program but it is calling another program(in this, main program is pure cobol but sub program is cobol+db2 program.can anyone please answer me for above questions. it's very urgent
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
How many days does a job remain in spool
How to DEBUG a JCL?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
Are there any set of rules for the names of the steps used in a job?
How to send notification to multiple users through jcl???
Explain about ISPF/TSO Commands
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?