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?
GDG and PDS.
- Robert Sample
- Global Moderator
- Posts: 1898
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: GDG and PDS.
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.
-
- Registered Member
- Posts: 11
- Joined: Fri Jan 17, 2014 6:53 pm
- Robert Sample
- Global Moderator
- Posts: 1898
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: GDG and PDS.
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.
Re: GDG and PDS.
But this can be done using the simple GDG Generations too. Right, that is also possible?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.
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