Posted: Tue Sep 23, 2014 3:01 pm Post subject: GDG - creation date of multiple generations using (0) (-1)
I have looked around a bit and hitting walls or multiple steps, I see a long way to come up what I need but think there may be a better way.
I am trying to capture the dates of various versions of a GDG just using the base and (0) (-1) etc.
I can get this using IKJEFT01 (LISTDS 'name' HISTORY) but need to convert the (0) to the version number first.
I can use IEFBR!4 and read the sysout and create a control card but then I am adding steps.
Is there a way using IKJEFT01 I can get the creation date of any specific version of a GDG. I already figured out if you give the GDG base only you get the creation of the last version, but I need for example (-3) creation date or even -10....hope this makes since
Thank you, I saw the information in the tricks manual,
My issue I am having is in the middle of a proc. I have a symbolicly resolved dataset name with the version as a (0), (-3) etc...
The DFSORT gets them all. I need the specific one being read in the proc at the time. I had once thought I could just write all out with the syncsort and create a temporary lookup table and cound backwards (or soemthing like that) but again I am getting complicated.
Joined: 26 Nov 2002 Posts: 12370 Topics: 75 Location: San Jose
Posted: Tue Sep 23, 2014 4:31 pm Post subject:
BobGilbert wrote:
Thank you, I saw the information in the tricks manual,
My issue I am having is in the middle of a proc. I have a symbolicly resolved dataset name with the version as a (0), (-3) etc...
The DFSORT gets them all. I need the specific one being read in the proc at the time. I had once thought I could just write all out with the syncsort and create a temporary lookup table and cound backwards (or soemthing like that) but again I am getting complicated.
There may not be any un complicated way?
Bob Gilbert,
It is quite simple to accommodate that. Pass the gdg base name in IGDG and generation number as a max of 4 bytes in IGEN ie. '+0', '-3' , '-21', or '-256'
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum