IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to restart the step that got abended


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sonasheetal

New User


Joined: 08 Jun 2005
Posts: 27

PostPosted: Fri Jun 24, 2005 10:39 am
Reply with quote

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
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Fri Jun 24, 2005 2:59 pm
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Jun 27, 2005 7:33 am
Reply with quote

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
View user's profile Send private message
sats456

New User


Joined: 29 May 2005
Posts: 12

PostPosted: Sun Jul 03, 2005 5:04 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sun Jul 03, 2005 7:39 pm
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Jul 04, 2005 12:10 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Reorg abended with REASON=X'00E40347' DB2 2
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
Search our Forums:

Back to Top