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?

Answers were Sorted based on User's Feedback



i have a jcl in which 4 & 5 step creates a new generation. 4th step output is as input for the ..

Answer / shridhar

Just one correction above:

In case of failure:

STEP006 (-1)
STEP007 (0)

Is This Answer Correct ?    6 Yes 1 No

i have a jcl in which 4 & 5 step creates a new generation. 4th step output is as input for the ..

Answer / vijay reddy

STEP004 (+1)
STEP005 (+2)

STEP006 (+1)
STEP007 (+2)

if the Job ABENDS, Restart the Job from 6th Step & refer
GDG Versions like

STEP006 (-1)
STEP007 (0)

Is This Answer Correct ?    4 Yes 0 No

i have a jcl in which 4 & 5 step creates a new generation. 4th step output is as input for the ..

Answer / nimsatprasad

Ref:

Ex:

Step 4 output: XX17.PRASAD.OUT(+4) This step can be
referred as in Step6.

Step 5 output: XX17.PRASAD.OUT(+5) This step can be
referred as in Step7.

If the Job bends in 6the step so already 5th step has been
processed successfully. So we can restart from the step6
then we can refer the 5th step output to 7th step input as
current version.

After abend:

Step 5 output: XX17.PRASAD.OUT(+5) This step can be
referred as XX17.PRASAD.OUT(0) in Step7 after abends the
job.

**** Please let me know if it is wrong

Is This Answer Correct ?    5 Yes 2 No

i have a jcl in which 4 & 5 step creates a new generation. 4th step output is as input for the ..

Answer / suputhru

4 & 5 step creates a new generation
STEP004 (+1) o/p----- STEP006 (+1)
STEP005 (+2) o/p----- STEP007 (+2)

STEP006 (+1)
STEP007 (+2)

if the Job ABENDS, it means 4th 5th steps executed suceesfully.
STEP004 (-1) o/p-------------------- STEP006
STEP005 (0) o/p-------------------- STEP007

Restart the Job from 6th Step & refer GDG Versions like

STEP006 (-1)
STEP007 (0)

Is This Answer Correct ?    2 Yes 0 No

i have a jcl in which 4 & 5 step creates a new generation. 4th step output is as input for the ..

Answer / shridhar

STEP004 (+1)
STEP005 (+2)

STEP006 (+1)
STEP007 (+2)

In case of failure:

STEP006 (0)
STEP007 (+1)

Is This Answer Correct ?    2 Yes 3 No

i have a jcl in which 4 & 5 step creates a new generation. 4th step output is as input for the ..

Answer / 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

More JCL Interview Questions

Explain about LMMFIND - find a library member

1 Answers  


List the various advantages of using jcl language?

0 Answers  


How to pass data to a program that is coded in an exec statement?

0 Answers  


How to ALTER the name of a GDG ?

2 Answers   IBM,


Suppose I have a file with three fields with data in the following format 1. empid - S9(4) COMP 2. empname - X(20) 3. empsal - S9(5)V(2) COMP-3 If I view this file, it will not be in a readable format. How to display the empid and empsal fields in a readable format without using COBOL program? What kind of SORT card will have to be coded?

4 Answers  






There are a set of 10 files and a customer will be selecting random no of files(i.e they may be more than 2, may not be in the order).Sometimes he might just select one file or sometimes no files at all.How do you code a JCL for this? Is it possible to code just JCL alone for this problem?

9 Answers   Infosys,


How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?

0 Answers   IBM,


i have records from 1 t0 100 . i need to open records from 10 to 18 and change the values in tht ? how can i do tht ?

2 Answers   Syntel,


Explain how can values be passed from the job stream to an executable program?

0 Answers  


wt will happen to the step of a job if u code COND=ONLY

5 Answers   ADP,


JCL Example: // //RUNJCL JOB CLASS=5,MSGCLASS=6,NOTIFY=&SYSUID //STEP01 EXEC PGM=IEFBR14 // .. .. If this JCL will run or it'll throw the ERROR?

4 Answers   HCL,


I have 15 flat files. each record in the files have the monthly salary for 12 months with the employee number. Now I want to concatenate the 15 files such that for the employee numbers that are common the o/p file should have only one record and the salaries should be concatenated to that record. How can we do it with JCL?

1 Answers  


Categories