I need to store a File in MVS with file name having latest Date/Time when the program was executed, so that we could re-use the same file again in future by passing the Date/Time through JCL. I.e we want to store the files with date and time. Could Date/Time be stored in GDG and if so how? If not what else are the options?
Joined: 26 Apr 2004 Posts: 4650 Location: Raleigh, NC, USA
How granular do your date and time values need to be? I could see using GDG's if you expected multiple occurences of files with the exact same date and time values. Otherwise, it seems to me that using GDG's would be a wasted effort. Don't forget that you need a GDG base defined BEFORE you can create a new generation, so you'd have to take that fact into account. Would you be pre-defining all of the possible bases, or would your job logic need to be able to define the bases "on the fly"?