i have a jcl in which 4 & 5 step creates a new generation.
4th step output is as input for the 6th step & 5th step
output is used as input in the 7th step. How they are
refered as in the 6th & 7th steps?
If the job abends in 6th step then how the 5th step output
is refered in 7th step?

Answer Posted / hi

check this out:

//JOB123 JOB (TEST,DATA).....
//..
//..
//STEP4 EXEC PGM=IEFBR14,
//OUT4 DD DSN=OUT.STEP4(+1),...
//..
//STEP5 EXEC PGM=IEFBR14,
//OUT5 DD DSN=OUT.STEP5(+1),...
//..
//STEP6 EXEC PGM=IKJEFT01,COND=(0,GT,STEP4)
//IN5 DD DSN OUT.STEP4(+1),DISP=SHR,
//..
//STEP7 EXEC PGM=IKJEFT01,COND=(0,GT,STEP5)
//IN5 DD DSN OUT.STEP5(+1),DISP=SHR,
//..


COND=(0,GT,STEP4) in STEP6 will bypass the step6 if RC of
step4 is greater than 0. But step 7 will be executed
irrespective of the success of the step4 provided step5 is
successful...

is it clear??

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is notcat 2 - gs?

946


Explain in DD statement what is the use of DCB parameter?

668


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

1053


Explain how can a stopped job be started again?

645


what is DSN in JCL and what are the parameters to declare the DSN?

733






Explain the job statement in jcl?

662


how to compare two datasets without using superce because output is limited to 133 bytes

1496


How to alter the parameters for the existing gdg?

725


What are the rules employed while naming the steps in a job?

672


Explain the function of job statement in jcl?

661


which parameter is use to declare the name of dataset in dd statement?

757


What is the function of job statement in jcl?

646


How to run cobol program using jcl?

662


What is the purpose of disp parameter?

659


A dd statement consists of 4 fields. Name them?

942