Definition of COND parameter in JCL

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

what sort card you will use to copy the data from one dataset to another dataset?

730


What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?

9220


how to run batch program without jcl?

10085


How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?

1801


Explain about ISPF/TSO Commands

1313






My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.

1986


Does jcl support automatic restart?

761


What is the motivation behind coding class parameter in job statement?

689


How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

5062


What do you understand by jcl?

629


What are the parameters that are used in creating a gdg?

741


which parameter is use to declare the name of dataset in dd statement?

737


Is automatic restart possible in jcl?

742


How can values be passed from the job stream to an executable program?

875


How can a fb file convert to vb file using sort program?

807