Definition of COND parameter in JCL

Answers were Sorted based on User's Feedback



Definition of COND parameter in JCL..

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

Definition of COND parameter in JCL..

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

Definition of COND parameter in JCL..

Answer / kavya

COND parameter specifies the return code test which the
system uses to determine whether a JOB wil continue
processing or not.If the test is not specified then the
system executes the job step else system bypasses all the
remaining steps.

Is This Answer Correct ?    11 Yes 6 No

Definition of COND parameter in JCL..

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

Definition of COND parameter in JCL..

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

Post New Answer

More JCL Interview Questions

a input file contains 1000 records, how to move the first 500 record into one out put file and how to move to second 500 records to anothere output file

6 Answers   ITC Infotech,


How can a job send a status message to a tso user at the completion of a job?

1 Answers  


Can we change a FB file to VB file in JCL? Please help

1 Answers  


what is the purpose of SYSOUT parameter in the DD statement?

1 Answers  


what is the difference between perform varying and perform

1 Answers  






what is use of disp parameter in dd statement?

0 Answers   IBM,


what is the compile process of cobol program expalin with code

0 Answers   IBM,


How to release the Output HELD by using HOLD = YES on DD statement ?

2 Answers   IBM,


what is “Cond= even” and “Cond=only”?

0 Answers  


At what stage, operator can change the class and priority of a submitted job?

2 Answers  


I have a job which is a long-running one. Processes millions of records. Due to some run-time problem (not a problem due to the job/data) the job abends.What needs to be done to make the job complete successfully.

4 Answers   TCS,


Explain in DD statement what is the use of DCB parameter?

0 Answers  


Categories