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
What is use of restart and how to use it?
when does a dataset go uncataloged?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
How would you understand error(execution phase)?
Differentiate between addressing mode and run mode.
Explain the function of the dd dcb keyword?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
I want to JCL sort for Non-COMP and COMP-3 fields SORT FIELDS=(1,5,A,6,11,A,12,11,A,19,1,A,20,1,A),FORMAT=BI,EQUALS Length of comp bytes is 11 bytes which start at 6byte and 12 byte considering 11 bytes in comp-3 is 6 bytes. Can anyone tell if the above sort work SORT FIELDS=(1,5,A,6,6,A,12,6,A,19,1,A,20,1,A),FORMAT=BI,EQUALS does not works OK
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
how you can direct the data to spool using SYSOUT option?
How to run cobol program using jcl?
Is it possible to code instream data in a PROC?
in ways data can be passed to a COBOL program from JCL?