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 

GDG maintenance

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
satyapallela
Beginner


Joined: 21 Oct 2005
Posts: 2
Topics: 1

PostPosted: Fri Oct 21, 2005 5:34 am    Post subject: GDG maintenance Reply with quote

hi

I need to maintain backups as 10 on disk after which I'll migrate the oldest one to tape. The main problem is how to detect whether 10th version got created or not thru JCL? Can someone help ..

Thanks
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
ANIL SARATHY
Beginner


Joined: 30 Aug 2005
Posts: 88
Topics: 3
Location: Syracuse,New york

PostPosted: Fri Oct 21, 2005 7:02 am    Post subject: Reply with quote

10th version will be abc.def.ghi(-9).

use IDCAMS or SORT to find out.

give search on "empty"
_________________
Anil Sarathy
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Fri Oct 21, 2005 7:10 am    Post subject: Reply with quote

satyapallela, do you want to know if the 10th version or the 10th generation was created?

Ex:

10th Version: 'HLQ.MYGDG.G0001V10'
10th Generation: 'HLQ.MYGDG.G0010V00'
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Fri Oct 21, 2005 7:13 am    Post subject: Reply with quote

ANIL SARATHY,

What happens when you only have 9 versions and you try (-9) you will get an error that the relative generation does not exist and the job will abend.

Satyapallela,

You need to issue a listcat and parse the output thru sort/rexx and determine the no: of generations from there . check this link. you need to modify it slightly

http://www.mvsforums.com/helpboards/viewtopic.php?t=138&highlight=endrec

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
satyapallela
Beginner


Joined: 21 Oct 2005
Posts: 2
Topics: 1

PostPosted: Sat Oct 22, 2005 6:57 am    Post subject: GDG maintenance Reply with quote

hi all

thanks for ur prompt responses. I've actually zeroed upon a rexx tool to check whether the last version (i.e. 10th in this case) got created or not and there by getting a return code and using in jcl. i would like to know if a similar thing exists in jcl where i can enquire if version(-9) i.e. 10th maximum file one got created or not.

Thanks
Satya
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kolusu
Site Admin
Site Admin


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

PostPosted: Sat Oct 22, 2005 7:40 am    Post subject: Reply with quote

Quote:

i would like to know if a similar thing exists in jcl where i can enquire if version(-9) i.e. 10th maximum file one got created or not.


satyapallela,

Please spend time reading my post and also looking at the link provided by me in my prior post. The link provided has a solution using sort utility.

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


Joined: 30 Aug 2005
Posts: 88
Topics: 3
Location: Syracuse,New york

PostPosted: Tue Oct 25, 2005 2:09 am    Post subject: Reply with quote

stepcheck

(-9) check this generation

if stepcheck = 0 ie all 10 gen. are available

stepmigrate

end-if.
_________________
Anil Sarathy
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: Tue Oct 25, 2005 3:45 am    Post subject: Reply with quote

ANIL SARATHY,

I would like to see your JCL step for that psuedo-code

Thanks

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 -> Application Programming 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