GDG and PDS.

JES2/3, JCL, utilities.
Previous topicNext topic

Topic Author
Salil
Registered Member
Posts: 25
Joined: Sat Jul 20, 2013 11:10 pm
Zodiac: Capricorn

GDG and PDS.

Post by Salil » Tue Jan 09, 2018 5:55 pm

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: 1375
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
Zodiac: Virgo

Re: GDG and PDS.

Post by Robert Sample » Tue Jan 09, 2018 8:21 pm

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 » Thu Feb 01, 2018 10:14 am

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: 1375
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
Zodiac: Virgo

Re: GDG and PDS.

Post by Robert Sample » Thu Feb 01, 2018 6:32 pm

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.



Previous topicNext topic

Return to “JCL - Job Control Language.”