check a GDG generation is present in catalog or not?

JES2/3, JCL, utilities.
Post Reply
Gagan Saini
New Member
Posts: 1
Joined: Wed Aug 13, 2014 10:49 am

check a GDG generation is present in catalog or not?

Post by Gagan Saini »

Hi every one,

I want to check in the first step of a JOB whether the GDG has generations or not. Could you plz tell me how can I solve this issue?
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: check a GDG generation is present in catalog or not?

Post by nicc »

Schedule the job so that it runs after the dataset is created. Alternatively, use IDCAMS to list the entries and then a program to check through the resultant list and set an appropriate return code.
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.”