How to execute step2,step5,step7 of a proc of 10 steps?
You are not allowed to change in JCL.
Answer Posted / krish123
we can use COND code in order to execute this. Use condition
code in each step
//JOBNAME JOB ACCT, RESTART=PROCA.STEP2 ---> INORDER TO
EXECUTE THE PROGRAM FROM STEP2
//PROCA EXEC PROCA
//STEP1 EXEC PGM=PROGRAM1
//STEP2 EXEC PGM=PROGRAM2,COND=(0,LT,STEP1)
//STEP3 EXEC PGM=PROGRAM3,COND=(0,GT,STEP2)
//STEP4 EXEC PGM=PROGRAM4,COND=(0,GT,STEP3)
//STEP5 EXEC PGM=PROGRAM5,COND=(0,LT,STEP4)
//STEP6 EXEC PGM=PROGRAM6,COND=(0,GT,STEP4)
//STEP7 EXEC PGM=PROGRAM7,COND=(0,LT,STEP6)
//STEP8 EXEC PGM=PROGRAM8,COND=(0,GT,STEP7)
//STEP9 EXEC PGM=PROGRAM9,COND=(0,GT,STEP8)
//STEP10 EXEC PGM=PROGRAM10,COND=(O,GT,STEP9)
Is This Answer Correct ? | 11 Yes | 13 No |
Post New Answer View All Answers
How to run cobol program using jcl?
Differentiate between addressing mode and run mode.
How can unused space allocation be returned to the system when a dataset is closed?
What does a disposition of (new,catlg,keep) for a dsn mean?
What is the syntax of JCL statement?
What is the function of //cntl statement?
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
Explain dfsort utility?
What is notcat 2 - gs?
How can a stopped job be started again?
what is the use of JCL?
which utility is used to run a cobol-db2 program?
What is the function of job statement in jcl?
what is the difference between JES3 and JES2?
what is use of space parameter in dd statement?