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 

Checking if a GDG has generations or not.

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


Joined: 14 Feb 2006
Posts: 42
Topics: 22

PostPosted: Sun May 21, 2006 9:09 am    Post subject: Checking if a GDG has generations or not. Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
kolusu
Site Admin
Site Admin


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

PostPosted: Mon May 22, 2006 4:29 am    Post subject: Reply with quote

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