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
Answers were Sorted based on User's Feedback
Answer / vijay sankar
sorry...i mentioned wrongly
if the COND parameter is true,the step is bypassed.
so if the previous steps having 0 or 4 , then we use //
COND=(4,LT) .....this step will excute.
| Is This Answer Correct ? | 8 Yes | 0 No |
Answer / 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 |
Answer / 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 |
Answer / ssssss
//STEP17 EXEC pgm=aaaaa,
// COND=(4,LT)
this will execute only the step017. If the return code is
Zero for the previous step then 4 is not less than zero so
condition fails so it will execute this step
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / shesha
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 ? | 2 Yes | 4 No |
Answer / satya sivaji.ch
//step17 exec COND=(4,GT)
This says that if any of the previous steps with return
code of greaterthan 4,then it wil bypass,if it less than
then execute it.
In condition parameter wat ever condition u specified
inside the condition parameter is true,then the step should
be bypassed.
| Is This Answer Correct ? | 1 Yes | 4 No |
step 17 wil execute only if cond is false so u can it as
//step17 .... cond=(4,gt) in 17th step
suppose if u give cond=(4,lt) then step 17 will not
execute it will just by pass if cond satisfies((i.e.)4,lt)
| Is This Answer Correct ? | 0 Yes | 3 No |
how do you code a null statement?
What does a disposition of (new,catlg,keep) for a dsn mean?
how do u send return code from cobol to jcl ?
What is the parameter to be passed in the job card for the unlimited time , irrespective of the job class ?
What is the significance of addrspc parameter in the exec statement?
Suppose I have a file with three fields with data in the following format 1. empid - S9(4) COMP 2. empname - X(20) 3. empsal - S9(5)V(2) COMP-3 If I view this file, it will not be in a readable format. How to display the empid and empsal fields in a readable format without using COBOL program? What kind of SORT card will have to be coded?
What do you understand by the term notcat 2 – gs?
Could anyone please suggest me what is the maximum length of data that can be pass as input in //sysin dd * This was asked in interview. TIA
what is a MODELDSCB?
What is the meaning of the following declaration : DCB=BLKSIZE=, What is the difference between above declaration & not specifying DCB at all for a output file?
What does a disposition of (NEW,CATLG,KEEP) mean?
What is condition checking in jcl? Is this possible?