How can I check if GDG bseses are defined?

JES2/3, JCL, utilities.
Post Reply
Neeraj Parekh
New Member
Posts: 6
Joined: Tue Apr 29, 2014 4:51 pm

How can I check if GDG bseses are defined?

Post by Neeraj Parekh »

Hi,

I got a requirement to code some new jobs, in them many GDG generations are created in many steps. Now, how to check if the GDG is defined for a list of GDG bases? I've a huge list and want to know if there is any way which can help me ...
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: How can I check if GDG bseses are defined?

Post by Robert Sample »

GDG bases are part of the catalog -- the easiest way would be to attempt to add a +1 generation; if that fails the base probably doesn't exist (unless you get a security error). If the base has at least one generation defined to it, you could use DCOLLECT to look at the defined data sets. Otherwise, manual use of ISPF 3.4 is probably going to be your best bet.
Neeraj Parekh
New Member
Posts: 6
Joined: Tue Apr 29, 2014 4:51 pm

Re: How can I check if GDG bseses are defined?

Post by Neeraj Parekh »

I'm thiking to use LISTCAT. I'll use a single step and put all the bases in there but I'm not sure if some base is not existing what to expect as output?
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: How can I check if GDG bseses are defined?

Post by nicc »

Why don't you set one up and then try again and then see what happens?
Regards
Nic
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “JCL - Job Control Language.”