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

How to refer the GDG generations If the step restarted


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
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
No new posts step by step trace 4 ISPF dialog call... TSO/ISPF 17
Search our Forums:

Back to Top