Definition of COND parameter in JCL

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What parameter directs the output of the job log dataset?

763


How to override loadlib?

1417


Explain the function of a dd statement?

651


Is automatic restart possible in jcl?

731


How to do automated restart when a job abend?

787






Explain about ISPF/TSO Commands

1308


Why include statement is used in a jcl?

687


What are steplib and joblib?

719


Explain the function of dd name parameter with a 2 part structure; audit.report?

890


What is one line to pass PARM from JCL to COBOL?

540


How do you submit a job for execution?

635


Is there any command to check wether the ps file is in sorted order?

2425


What is the function of a dd statement?

702


How to execute 2nd and 4th steps among 5 steps in jcl proc?

747


How to run cobol program using jcl?

648