Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to restart the step that got abended

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how to restart the step that got abended
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    Post subject:
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    Post subject:
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    Post subject: Re: how to restart the step that got abended
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

Moderator Team Head


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

PostPosted: Sun Jul 03, 2005 7:39 pm    Post subject: Re: how to restart the step that got abended
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IDMS DC027007 T58 TASK:ADS2 PROG:ADSO... gpowell382 IDMS/ADSO 2 Fri Jun 30, 2017 11:52 pm
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us