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 / sivakumar sekharannair

In the question it says that in step 4 and 5 a new
generation is created. so
Step 4 output: XX17.PRASAD.OUT1(+1) This step can be
referred as in Step6.
so step 6 will refer this file as XX17.PRASAD.OUT1(+1)
generation only. because (+1) will become current version
(0) only after the execution of the entire job.
Similarly
Step 5 output: XX17.PRASAD.OUT2(+1)
so step 7 will refer this file as XX17.PRASAD.OUT2(+1).
If the job abends in step 6. the files created in step 4
and 5 will become current version (0).
so now the 7th step will refer the output of step 5 as (0)
i.e.XX17.PRASAD.OUT2(0).

Note:
I assume the files created by step4 and step5 are different.

Is This Answer Correct ?    8 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

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 ?    1 Yes 0 No

Post New Answer

More JCL Interview Questions

In one of intervie, my interviwer asked, I have a file which contains 4 records I would like to split the 4 different outputs for each record how to do?

14 Answers   Cap Gemini, Cognizant, JPMorgan Chase, TCS, Xansa,


Is it possible to define dd statements as you want?

0 Answers  


GDGs can be CREATED (not COPIED) only on DASD and NOT on tape drives ? Is it True ?

2 Answers   ABC, IBM,


How can we increment subscript and index?

1 Answers   CTS, IBM,


Is there a limit of 3273 DD statements for a JCL or for every EXEC step in a JCL?

2 Answers  






WORKING-STORAGE SECTION. 1 GROUP-ITEM. 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50. 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP. PROCEDURE DIVISION. MOVE ZERO TO GROUP-ITEM. ADD 50 TO AMOUNT-1. DISPLAY AMOUNT-1. STOP RUN.

1 Answers  


Explain about LMOPEN -

1 Answers  


can a job be submitted through jcl only? is there another way to submit a job?

2 Answers   CSC,


Can I concatenate various datasets whose organization are different from each other. Lets say I want to cancatenate a PDS file, a PS file, a GDG file etc. Can You do that ?? If yes, how ? is there any separate Utility to do so ???

4 Answers  


My JCL have five steps & I created new versions of GDG in first step through fourth step & fifth step I was refered Step one GDG version. My JCL got abend at 4th step and how I can restart my JCL Please let me know the answers. //STEP1 EXEC GDG1(+1) DISP=(NEW) //STEP2 EXEC GDG1(+2) DISP=(NEW) //STEP3 EXEC GDG1(+3) DISP=(NEW) //STEP4 EXEC GDG1(+4) DISP=(NEW) //STEP5 EXEC GDG1(+1) DISP=(OLD)

11 Answers   HCL, IBM, L&T, TCS,


Do we need to code DCB parameters when using DISP position as MOD?

1 Answers   Accenture,


i just need the first and last record from a sequencial file?how

2 Answers  


Categories