Definition of COND parameter in JCL
Answers were Sorted based on User's Feedback
Answer / guest
COND is a condition parameter, consists of 2 sub parameters,
1st - return code from the previous step, 2nd - condition.
If COND is true, the step on which COND is coded will be
BYPASSED.
| Is This Answer Correct ? | 30 Yes | 5 No |
Answer / suresh
If the condition satisfies it won't execute the current
step..it will bypass the current step..
| Is This Answer Correct ? | 15 Yes | 2 No |
Answer / vish
To be more specific, COND parameter is used to determine
whether to execute a particular steps or steps based on the
return from a previous step (s). e.g. you may want to send
an email notification to someone ONLY if a particular Job
step abends or return a return code greater than acceptable
norm. In such situation the EMAIL STEP (ideally should be
the next step of the step whose notification is needed if
abend occurs) can be coded with COND=ONLY. Similarly
COND=EVEN will execute a step EVEN if the previous step
abended. We can specify two parameters for COND in oder for
the Job to decide whether to execute the step or not. e.g.
COND=(0,LE) - This will execute the step only if the return
code of the previous step is Zero.
| Is This Answer Correct ? | 10 Yes | 9 No |
Answer / lavanya
hi,
we can code cond parameter on both job and exec
stmts.very step has to be executed a return code upon
completion.that is known as condition code.condition is
used to control the execution of the subsequent
steps.always the condition parameter based on the previous
step.suppose the given cond is true,the step is not
executed,otherwise it will bypassed to its next step.
FOR EX:-
JOB CARD
//STEP1 EXEC PGM=ABC
//STEP2 EXEC PGM=XYZ,COND=(4,LT,STEP1)
HERE THE CONDITION IS TRUE,
so,step will not executed.
| Is This Answer Correct ? | 4 Yes | 3 No |
How to see the COMP3 value(packd decimal)
Suppose there r total 10 steps. Out of which i want to execute only the 7th step. How can i do that....????
Where can program checkpoints be stored for use in a restart?
Is it possible to define dd statements as you want?
GDGs can be CREATED (not COPIED) only on DASD and NOT on tape drives ? Is it True ?
What is the error code SOC01 indicate ?
What are steplib and joblib?
Suppose there r 10 steps . Out fo which i want to execute 10th, 9th and 8th in reverse order without using IEBEDIT. How can i do that..???
What are s0c1, s0c4, s0c5, s0c7 and socb?
What is GDG and what is the maximum limit of versions that can be created?
what is use of dcb parameter in dd statement?
What is meant by S0C7 system abend code?