View previous topic :: View next topic |
Author |
Message |
satyapallela Beginner
Joined: 21 Oct 2005 Posts: 2 Topics: 1
|
Posted: Fri Oct 21, 2005 5:34 am Post subject: GDG maintenance |
|
|
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 |
|
 |
ANIL SARATHY Beginner

Joined: 30 Aug 2005 Posts: 88 Topics: 3 Location: Syracuse,New york
|
Posted: Fri Oct 21, 2005 7:02 am Post subject: |
|
|
10th version will be abc.def.ghi(-9).
use IDCAMS or SORT to find out.
give search on "empty" _________________ Anil Sarathy |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Fri Oct 21, 2005 7:10 am Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Fri Oct 21, 2005 7:13 am Post subject: |
|
|
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 |
|
 |
satyapallela Beginner
Joined: 21 Oct 2005 Posts: 2 Topics: 1
|
Posted: Sat Oct 22, 2005 6:57 am Post subject: GDG maintenance |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Sat Oct 22, 2005 7:40 am Post subject: |
|
|
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 |
|
 |
ANIL SARATHY Beginner

Joined: 30 Aug 2005 Posts: 88 Topics: 3 Location: Syracuse,New york
|
Posted: Tue Oct 25, 2005 2:09 am Post subject: |
|
|
stepcheck
(-9) check this generation
if stepcheck = 0 ie all 10 gen. are available
stepmigrate
end-if. _________________ Anil Sarathy |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Oct 25, 2005 3:45 am Post subject: |
|
|
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 |
|
 |
|
|