Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

If an abend occurs in previous step, will the gdg be created

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
vbhat

New User


Joined: 29 Apr 2005
Posts: 38

PostPosted: Mon May 09, 2005 10:44 am    Post subject: If an abend occurs in previous step, will the gdg be created
Reply with quote

There are 5 steps
//job1 restart=s5
//s1 dsn= gdg(+1)
//s2
//s3 abend occurs
//s4
//s5 this step refers gdg(+1) created in s1


Q1) if an abend occurs in s3 will the gdg be created?
Q2) how to refer this version in s5

please help me in this

vbhat
Back to top
View user's profile Send private message

sanaanil

New User


Joined: 14 Apr 2005
Posts: 5
Location: Bangalore

PostPosted: Mon May 09, 2005 11:13 am    Post subject: Re: There are 5 steps
Reply with quote

As GDG gets updated only after the completion of the JOB, you need to refer the GDG in Step5 as (+1).


Regards
Anil Kumar Sana
Back to top
View user's profile Send private message
brain_s390

New User


Joined: 06 May 2005
Posts: 58
Location: Mumbai

PostPosted: Mon May 09, 2005 11:49 pm    Post subject: Re: If an abend occurs in previous step, will the gdg be cre
Reply with quote

IF abend occurs in step3 then new version wont be created due to not good EOJ(Enod of job).

Step-5 will refer the (+1) version.

Pls 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: 4649
Location: Raleigh, NC, USA

PostPosted: Mon May 09, 2005 11:58 pm    Post subject: Re: If an abend occurs in previous step, will the gdg be cre
Reply with quote

Well, vbhat, what do YOU think of the responses? I would suggest that you create a test of your requirements and let us all know what results you get.
Back to top
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Tue May 10, 2005 1:07 am    Post subject:
Reply with quote

Hey vbhat,

If your S1 step is successful then your GDG will be created. Then to refer the GDG you need to restart the job from the abended step and in S5 step, refer the GDG as gdg(+0).

For more information check the following link:

http://ibmmainframes.com/viewtopic.php?p=6672#6672
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 247
Location: Cincinnati OH USA

PostPosted: Tue May 10, 2005 1:12 am    Post subject:
Reply with quote

Forgive the intrusion if I'm incorrect, but doesn't it all depend upon the DISP= in step 1?


Dave
Back to top
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Tue May 10, 2005 1:17 am    Post subject:
Reply with quote

Quote:
doesn't it all depend upon the DISP= in step 1?

yes Ofcourse. But if we need to refer the same GDG again, I dont think we will give the disp in such a way to delete that.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Tue May 10, 2005 1:24 am    Post subject: Re: If an abend occurs in previous step, will the gdg be cre
Reply with quote

I agree. It would be rather silly to create a new generation with a disposition of NEW,DELETE or MOD,DELETE or NEW,PASS or MOD,PASS.
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 247
Location: Cincinnati OH USA

PostPosted: Tue May 10, 2005 1:34 am    Post subject:
Reply with quote

Not necessarily true.

You may NEW,PASS,DELETE until a final step catalogs passed datasets.

This will serve to make all jobs "job restartable" rather than "step restartable" except for update in place datasets like in VSAM.

This was a shop standard at my prev employer.

The example given was unclear as specified, but I concede that NEW,CATLG is reasonably implied with specification restart at S5. icon_biggrin.gif


Dave
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 Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts C03 ABEND sjiraga PL/I & Assembler 1 Thu Jun 01, 2017 4:51 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 IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us