I have 2 steps in my exec statement , in first step I am
creating a gdg, and the output of this step is going into
second step as a input, and this second step is abended ,
now how could i approach in this case.

Answers were Sorted based on User's Feedback



I have 2 steps in my exec statement , in first step I am creating a gdg, and the output of this st..

Answer / chakri

The input for second step is already created, solve the
abend and restart from the abended step

Is This Answer Correct ?    18 Yes 3 No

I have 2 steps in my exec statement , in first step I am creating a gdg, and the output of this st..

Answer / madhuri tungal

when the job abended in step 2 then while restarting the
job from step2 the GDG has to be referred using (0) i.e
current generation insted of (+1) as in earlier case before
abend.

Please correct me if in case i am wrong....

Thanks,
Madhuri.

Is This Answer Correct ?    18 Yes 3 No

I have 2 steps in my exec statement , in first step I am creating a gdg, and the output of this st..

Answer / luiz roberto

In my opinion it depends of the abend.
Why was the cause of STEP2 abend? If it was because a bad
file created on STEP1 we should correct the program that
generates the file (on STEP1), uncatlg the bad GDG created,
and then resubmit the job from STEP1.
If the STEP2 cancelled and the input file is good, we should
fix the STEP2 and restart the job from STEP2 using GDG(0).

Is This Answer Correct ?    2 Yes 0 No

I have 2 steps in my exec statement , in first step I am creating a gdg, and the output of this st..

Answer / guest

It Depends on what type of restart it is, if no checkpoint
or UC1RMS is present, as Madhuri has suggested, we need to
make the GDG version as 0 and procedd, in case checkpoint
or UC1RMS is present, then we directly restart from the
abended step.

Is This Answer Correct ?    0 Yes 0 No

I have 2 steps in my exec statement , in first step I am creating a gdg, and the output of this st..

Answer / garry

Pls code GDG(0) and the data set at step 2 is created, you need to take care of this as well (may or may not created).

I am assuming created, then delete is first:
Couple of options are:

1. Manual Delete and JCL will create it again as //STEP2 ......... DD DSN=.....DISP=(new,catlg,catlg{if delete was coded hear you may ignore my steps})

2. Use IEBGBER at step0 to delete previously created d/st by DISP=(MOD,delete,delete).

Pls check, if my response is not clear let me know.

Garry

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JCL Interview Questions

how to count the number of members in pds?

2 Answers  


if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?

0 Answers   IBM,


I have 2 steps in my exec statement , in first step I am creating a gdg, and the output of this step is going into second step as a input, and this second step is abended , now how could i approach in this case.

5 Answers   Bank Of America,


Explain the hierarchy levels in jcl?

0 Answers  


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

0 Answers   IBM,






when we use sysprint and sysout statements

3 Answers  


wht r different types of sorts ?

1 Answers   L&T,


For how long a job can be executed continuously in a mainframe ?

4 Answers  


what are the ways of passing data to a cobol program from jcl?

1 Answers   IBM,


how to do automated restart when a job abends?

0 Answers   IBM,


1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat

1 Answers   Tesco,


The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?

0 Answers  


Categories