I have 20 steps in a job... step01, 02....step17...step20.
For some reason I want to execute step17 only if the return
code for all the previous steps are less than or equal to 4.
otherwise if return code for any of the previous 16 steps
is greater than 4, then step17 should be bypassed. How do I
do that ?? how and in which step should i formulate COND
parameter
Answer Posted / vijay sankar
The purpose of the COND is to determine whether the step
should be executed or bypassed. If condition specified in
the COND parameter is true,the step is bypassed.
so if we use // COND=(4,LT) .....this step will never excute
use COND=(4,GT)which is correct
Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
Can I share my data with other jobs? How?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
What is the use of disp parameter?
What are the jcl procedures?
What is the difference between run mode and addressing mode?
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.
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file
which parameter is use to declare the name of dataset in dd statement?
Name the statement which can be used to send data to another mvs jes3 node?
How can the disposition of sysout datasets be set for an entire jobstream?
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
What are the parameter we cannot use in procedure?
What is the purpose of dd?
How does jcl act on a cobol code?
What is the purpose of dd * statement in jcl?