View previous topic :: View next topic
|
Author |
Message |
sonasheetal
New User
Joined: 08 Jun 2005 Posts: 27
|
|
|
|
I have 25 steps in a JCL job. I'm creating a new GDG(+1) in my first step. I'm referring to the same GDG in the 25th step. While executing the job, it got abended in 24th Step. Can I restart the job from 25th step and if so, what modifications do i need to do? |
|
Back to top |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
|
|
As your GDG is already created in the first step, restart the job from 25th step by changing the GDG as GDG(0). This will solve your problem. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
For this reason relative GDG #s are usually coded as symbolic params (e.g &GEN1). Then you only have to provide the symbolic (gen1=0) rather than o'ride the DD stmt. |
|
Back to top |
|
|
sats456
New User
Joined: 29 May 2005 Posts: 12
|
|
|
|
Friends,
I had read in one of the Books,GDG's are catalogued only at the end of the successful execution of job..SO if your job has got abended,even though Step 1 has executed successfully,the new version will be deleted ..
So while restarting we have to restart from Step1 ....
Correct me if I am wrong ? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
sats456 wrote: |
Correct me if I am wrong ? |
You are wrong, and the book is woefully incorrect. Datasets are cataloged at the end of the job step. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi sats,
I think you may have misunderstood what the author meant.
The creator has control over what happens to the GDG entry at EOJ (actually EOStep) via the DISP param. If you create a GDG in Step1, whether it's cataloged or deleted depends on your DISP and the step's completion (abend or non-abend).
You're correct in this sense:
Other jobs cannot access the GDG until the job that creates it ends. On the other hand, succeeding steps in the creating job can access it using the same relative GDG# that it was created under. Provided that the creating
DISP is correct. |
|
Back to top |
|
|
|