Checking if GDG is defined.



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Checking if GDG is defined.

Postby mohbaig » Tue Nov 26, 2013 6:57 pm

Recently got a requirement to code new jobs in which GDG generations are being created at various steps.?
Now, How to check if the GDG is defined for a list of GDGs ? Having all the names in hand.

The list is big and want to know if there is any way which can help me ..
mohbaig
 
Posts: 28
Joined: Sun Nov 10, 2013 10:55 pm
Has thanked: 7 times
Been thanked: 0 time

Re: Checking if GDG is defined.

Postby Robert Sample » Tue Nov 26, 2013 7:29 pm

Your post is not clear. Are you wanting to know if the GDG base is defined for a given set of base names, or are you wanting to know if any generations are defined for a given set of base names, or something else? Furthermore, is this a one-time thing or something you expect to run regularly? Why are you wanting to find out this information -- are you planning on doing something with the output or just satisfy your curiousity?

The long-term solution typically requires running IDCAMS LISTCAT against the GDG base and parsing (using the language of your choice) the LISTCAT output to pull out the desired information.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Checking if GDG is defined.

Postby mohbaig » Tue Nov 26, 2013 7:33 pm

Want to know if the GDG base is defined. Having a big list of GDG base names to check.
Can we run LISTCAT for all GDG base names at once. ?
mohbaig
 
Posts: 28
Joined: Sun Nov 10, 2013 10:55 pm
Has thanked: 7 times
Been thanked: 0 time

Re: Checking if GDG is defined.

Postby dick scherrer » Tue Nov 26, 2013 9:01 pm

Hello,

Yes, provided they all have a common dataset name format . . . Say if they all have the same high-level qualifiers.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post