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 do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

679


how would you create a temporary dataset? And where will you use them?

768


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

1933


which utility is used a dummy utility?

795


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

662






what sort card you will use to copy the data from one dataset to another dataset?

730


How can an in-stream dataset be terminated?

849


How dummy is used in jcl?

651


Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE

1969


what is the purpose of coding class parameter in job statement?

724


What is the function of job statement in jcl?

636


What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?

816


Explain the hierarchy levels in jcl?

1120


Explain the function of //jcllib statement?

708


what are the types of abends that occur on job failure? And explain the possible causes of these

1118