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
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 |
Post New Answer View All Answers
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 ?
How can return codes be tested before execution of a job step?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
what happens in execution stage in job processing?
what is “Cond= even” and “Cond=only”?
Explain the jcl exec statement?
What is timing concept in mainframe?
when does a dataset go uncataloged?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
what is the purpose of coding class parameter in job statement?
Differentiate between addressing mode and run mode.
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375
Are there any set of rules for the names of the steps used in a job? What are they?
Is it possible to left uncode disp? If yes, how?
how to do automated restart when a job abends?