GDG and PDS.

JES2/3, JCL, utilities.
Post Reply
Salil
Registered Member
Posts: 25
Joined: Sat Jul 20, 2013 11:10 pm

GDG and PDS.

Post by Salil »

Hi,

I always thought that GDGs are applicable to flat files only but I have also just seen GDGs for PDS too. When do we use GDG for PDS?

I had also noticed that we cannot specify a member name and a relative GDG number at the same time, is it correct or I got it wrong?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1885
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: GDG and PDS.

Post by Robert Sample »

Yes, the JCL Reference manual is clear that you can have (member) or (relative generation number) after the DSNAME, but not both. If you have a PDS GDG base, you have to use absolute generation numbers with the member name. It is rare to need a PDS GDG since specifying the data set name is more complex.
Rashmi Bansal
Registered Member
Posts: 11
Joined: Fri Jan 17, 2014 6:53 pm

Re: GDG and PDS.

Post by Rashmi Bansal »

This is new information But why would we use GDG for PDS, if we have use it ever?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1885
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: GDG and PDS.

Post by Robert Sample »

I can see a use for PDS generations -- there is a daily process that generates files on a server. Those files are transferred via FTP to the mainframe for updating a DB2 data base. If the file names meet PDS member name standards, I could see using a PDS generation to hold each day's data in case of reruns.
Salil
Registered Member
Posts: 25
Joined: Sat Jul 20, 2013 11:10 pm

Re: GDG and PDS.

Post by Salil »

Robert Sample wrote: Thu Feb 01, 2018 6:32 pmI can see a use for PDS generations -- there is a daily process that generates files on a server. Those files are transferred via FTP to the mainframe for updating a DB2 data base. If the file names meet PDS member name standards, I could see using a PDS generation to hold each day's data in case of reruns.
But this can be done using the simple GDG Generations too. Right, that is also possible?
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.”