View previous topic :: View next topic |
Author |
Message |
rajeshkoratti Beginner
Joined: 14 Feb 2006 Posts: 42 Topics: 22
|
Posted: Sun May 21, 2006 9:09 am Post subject: Checking if a GDG has generations or not. |
|
|
Hi All
I have this requirement.
I want to find out if generations are existing for a GDG base specified. Based on if exists or not exists i am to run a particular step in a job.
What i did to solve this problem was:
I used IDCAMS utility and did a LISTCAT LVL('AAAA.BBBB.GDGBASE'), the step gives me a return code of 4 when no generations exists and 0 when generations exists.
Is this solution ok or is there a mor standard way of checkin?
Also i would like to ask one more questions on the same lines, is there any method to find out the number of generations currently existing for a GDG. _________________ Thanks and Regards..
Rajesh |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Mon May 22, 2006 4:29 am Post subject: |
|
|
rajeshkoratti,
why not not check for 'AAAA.BBBB.GDGBASE(0)' version of the gdgbase? If you have a generation you will get a zero return code else you will get a 12 return code.
Quote: |
Also i would like to ask one more questions on the same lines, is there any method to find out the number of generations currently existing for a GDG.
|
Please search before posting . Check this link
http://www.mvsforums.com/helpboards/viewtopic.php?t=711&highlight=gdg+limit
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
|
|