MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CA-7 Dataset problem with Restart option

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
sateesh_gontla
Beginner


Joined: 23 Jan 2004
Posts: 40
Topics: 16
Location: Bangalore

PostPosted: Fri Sep 09, 2005 8:20 am    Post subject: CA-7 Dataset problem with Restart option Reply with quote

Hi,

We have a 2 JCLs using the same GDG name, when the first job is in abended status it might have captured version G0000v006 and when the second job starts it also captures the same version as it was not used in the first job.

While restarting the first job again it uses the same version G0000v006 as it is in memory of CA scheduler.

How U11RMS can be used to resolve this problem ? Please advise...

Thanks.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Sep 09, 2005 8:35 am    Post subject: Reply with quote

Quote:

We have a 2 JCLs using the same GDG name, when the first job is in abended status it might have captured version G0000v006 and when the second job starts it also captures the same version as it was not used in the first job.


sateesh_gontla,

Your post is confusing as I am not really sure as to what the question is.

1. Are the jobs creating the new gens of the GDG or just reading them ?

I suggest that you go thru this topic for a better understanding the GDG's

http://mvsforums.com/helpboards/viewtopic.php?t=1251&highlight=gdg

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sateesh_gontla
Beginner


Joined: 23 Jan 2004
Posts: 40
Topics: 16
Location: Bangalore

PostPosted: Fri Sep 09, 2005 8:59 am    Post subject: Reply with quote

Yes, They are creating the new generations.

The situation is like this :

There is a dataset with this version is present : MYGDG.TEST.G0005V00

When Job1 runs it will try to create MYGDG.TEST.G0006V00 but it abended.

When Job2 runs it will try to create a new version and it is successfull with creating MYGDG.TEST.G0006V00 as this version is not present.

After successful completion of Job2, we have restarted the Job1 and it is trying to overwrite the existing version MYGDG.TEST.G0006V00 instead of creating MYGDG.TEST.G0007V00, why ?
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Sep 09, 2005 12:27 pm    Post subject: Reply with quote

Quote:

Yes, They are creating the new generations.
After successful completion of Job2, we have restarted the Job1 and it is trying to overwrite the existing version MYGDG.TEST.G0006V00 instead of creating MYGDG.TEST.G0007V00, why ?


Sateesh_gontla,

Ok If both jobs are indeed creating the new Generations, then there is something wrong with your JOB2. If JOB1 created the GDG version 6 and abended , then the catalog is updated with this info. So your JOb2 should be creating the version 7 instead of version 6.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sateesh_gontla
Beginner


Joined: 23 Jan 2004
Posts: 40
Topics: 16
Location: Bangalore

PostPosted: Fri Sep 09, 2005 12:42 pm    Post subject: Reply with quote

Hi

The Job1 didn't create the version 6, before creating the version 6 it abended. Then Job2 created the version 6 which is correct. But While restarting the Job1 it is trying to overwite the version 6 itself. Please advise.

Thanks.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Sep 09, 2005 12:54 pm    Post subject: Reply with quote

Quote:

The Job1 didn't create the version 6, before creating the version 6 it abended. Then Job2 created the version 6 which is correct. But While restarting the Job1 it is trying to overwite the version 6 itself. Please advise.


If your Job1 did not create version 6, then make sure that you don't have symbolic in job1 to refer the zero gen in case of a restart.

Code:

//MYPROC PROC GN='+1'
//*                                                                   
//STEP0100 EXEC PGM=my pgm
//OUTPUT   DD     DSN=HLQ.MLQ.TLQ(&GN),
...


Now if the job abends and I am restarting the job, then I will change the symbolic GN to 0 as the new gen is created and catalogued.

In your case the job abended even before it got to the step that creates the new gen, but when restarting someone changed the symbolic to zero gen, which makes job1 to overwrite the version created by job2.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sateesh_gontla
Beginner


Joined: 23 Jan 2004
Posts: 40
Topics: 16
Location: Bangalore

PostPosted: Fri Sep 09, 2005 1:11 pm    Post subject: Reply with quote

Without changing the values we should able to restart the job and it should pickup the next version which is 7.

We were told to use this option : U11RMS, TYPRUN='N' which supresses the CA-11 control in Job .... any thoughts on this ....
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Sep 09, 2005 1:22 pm    Post subject: Reply with quote

Quote:

Without changing the values we should able to restart the job and it should pickup the next version which is 7.


Sateesh_gontla,

You need relly understand the job flow. As per your posts your job abended in different step other than the one which creates the new generation. Your restart should not have any effect on the creation of the new gen. Post your jcl you are execueting for both job1 and job2

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group