I have 10 steps, I want to run STEP1 TO STEP4 then I should
not run STEP5 and STEP6. Aganin I want to execute from
STEP7 to STEP10. ONLY using CONDITION CODES how can we
execute this process?
1. Where we can set cond codes for STEP5 and STEP6?
2. How can we execute remaining steps from STEP7 to STEP10?
Answers were Sorted based on User's Feedback
Answer / harsih
there 2 ways for this
FIRST METHOD is use ibm utility called "IEBEDIT" and in
sysin in the include statement , give he steps u want to
execute..........
SECOND METHOD = and the steps whicc u dowant to excute code
COND{O,LE} ON THOSE STEPS
| Is This Answer Correct ? | 11 Yes | 0 No |
Answer / lokesh
1) Use cond code as COND=(0,LT,STEP04) on step 05 and COND=
(0,LT,STEP04) on step 06. As return code is always non-
negative, step05 and step06 will never get executed.
2) To execute remaining steps, use cond code as (4,LT)
| Is This Answer Correct ? | 5 Yes | 7 No |
whats SOC7?
how do you resolve for soc7 error
What is the use of ikjeft1b utility in jcl?
In job processing, what happens in execution stage?
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.
in my jcl have 20 steps step1,step2,.... step20.and i have to execute step1,step2,..and skip the step3 and remaing step4,step5 are execute? i want skip step3 only? what code u can write?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
diff bw SB37,SD37,SE37 ?( bcz these 3 belongs Space related abends only)
For what purpose steplib and joblib are used ?
what happens when time=0 is given in jcl code. what happens when blksize=0 is given in jcl code. what is symbolic and overriding parameters and a example program.
how can handle the s0c4 abend???
How to check empty file in jcl?