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 / s
COND paramater should be in the step17 only
//step17 exec ......COND=(4,LT)
This condition will skip step17 when the return code is
lessthan or equal to 4 of all the previous steps.
(do not give any step name in cond)
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
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
How to execute 2nd and 4th steps among 5 steps in jcl proc?
How do you access an uncatalogued dataset in a jcl?
Is condition checking possible in jcl?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
How jcl work to handle various input output file operations?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
Which dd parameters are required?
Explain how can the attributes of one sms dataset be copied to another dataset?
Define concatenating?
What are some jcl statements that are not allowed in procedures?
what is use of space parameter in dd statement?
What is the difference between run mode and addressing mode?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
How do you submit a job for execution?