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
 

 

How to refer the GDG generations If the step restarted

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

New User


Joined: 27 Nov 2005
Posts: 4

PostPosted: Sun Nov 27, 2005 10:37 pm    Post subject: How to refer the GDG generations If the step restarted
Reply with quote

There are 10 steps in my job. The job abended at step6. I created some generations before step6. If I restart the job at step6 then how should I refer to those GDG generations?

Ramana.
Back to top
View user's profile Send private message

mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Nov 28, 2005 1:07 am    Post subject: Re: GDG + RESTART
Reply with quote

Hi Ramana,

It depends on how many generations you created in the orig run:

If you created 3:

You created the 1st w/dsn=dsn1(+1), use dsn=dsn1(-2) on restart.
You created the 2nd w/dsn=dsn1(+2), use dsn=dsn1(-1) on restart.
You created the 3rd w/dsn=dsn1(+3), use dsn=dsn1(0) on restart.

If you created 2:

You created the 1st w/dsn=dsn1(+1), use dsn=dsn1(-1) on restart.
You created the 2nd w/dsn=dsn1(+1), use dsn=dsn1(0) on restart.
Back to top
View user's profile Send private message
venkataramanak

New User


Joined: 27 Nov 2005
Posts: 4

PostPosted: Mon Nov 28, 2005 11:26 am    Post subject: Re: How to refer the GDG generations If the step restarted
Reply with quote

Hi mmwife,

Thank you

Regards,
Ramana
Back to top
View user's profile Send private message
rohit_y

New User


Joined: 23 Nov 2005
Posts: 4

PostPosted: Mon Nov 28, 2005 1:52 pm    Post subject:
Reply with quote

The thing is GDG won't be cateloged until the end of job successfully.
If the job isn't completed successfully then the gdg won't be catelog successfully.
Back to top
View user's profile Send private message
k_vikram07

New User


Joined: 23 Nov 2005
Posts: 35

PostPosted: Mon Nov 28, 2005 2:23 pm    Post subject:
Reply with quote

I agree with rohit.

It also depends on the dispositions used in the previous steps.


Thanks
Vik
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Nov 29, 2005 6:30 am    Post subject:
Reply with quote

Rohit-Y,

The datasets CAN be cataloged even if the job abends, provided that the job abends AFTER the the step that created the GDG dataset completes SUCCESSFULLY and the DISP was coded appropriately.
Back to top
View user's profile Send private message
sbalajibe

New User


Joined: 15 Aug 2005
Posts: 62

PostPosted: Tue Nov 29, 2005 10:39 am    Post subject:
Reply with quote

hi ,
in this case i think there is no need to use restart to step 6 to create new , because new generation always starts with (+1)
this is how u r jcl look like
//job
//step1 dd dsn abcd.gdg(+1), disp(,catlg)
//step2 dd dsn abcd.gdg(+2), disp(,catlg)
//step3 dd dsn abcd.gdg(+3), disp(,catlg)
//step4 dd dsn abcd.gdg(+4), disp(,catlg)
//step5 dd dsn abcd.gdg(+5), disp(,catlg)
//step6 dd dsn abcd.gdg(+6), disp(,catlg)
//step7 dd dsn abcd.gdg(+7), disp(,catlg)
//step8 dd dsn abcd.gdg(+8), disp(,catlg)
//step9 dd dsn abcd.gdg(+9), disp(,catlg)
//step10 dd dsn abcd.gdg(+10), disp(,catlg)

in this case let us say u r job abends at 6
u will have the following generations

abcd.gdg.g0000v00
abcd.gdg.g0001v00
abcd.gdg.g0002v00
abcd.gdg.g0003v00
abcd.gdg.g0004v00

if u want to create generation 5 then u have to again start with (+1) ,but if u start the step in 6 u will get (+6) which will not give u correct result


correct me if i am wrong

thanks
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 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
No new posts Compare each GDG Generations to other... Ayyappa1 JCL & VSAM 13 Tue Jun 28, 2016 1:48 pm
No new posts Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm


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