Often when I want a timestamp attached to a flat file and it isn't necessarily the file creation date, I attach a special record that subsequent programs can distinguish from the rest of the data. Typically it's the first record, with an asterisk in the first position and any text I want following, eg:
* Created by PGMNAME 2022-12-05 14:55 ...but it could be anything. Would something like that be applicable here? --- Bob Bridges, [email protected], cell 336 382-7313 /* 1. Sleep on a shelf in your cupboard. 2. Replace the cupboard door with a curtain. 3. Four hours after you go to sleep, have your mate whip open the curtain, shine a flashlight in your eyes, and mumble, "Your watch!". -from How to Get Ready for Sailing */ -----Original Message----- From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Sri h Kolusu Sent: Wednesday, January 5, 2022 10:28 Not sure what this would accomplish. If you have the timestamp in the base name, all the generations despite its creation date will all have the same name with different generation names. For example if you created a GDG Base with (YEAR =2022 MONTH = 01 DAY = 05 HOUR =08 MINUTE =19 SECOND =03) USERID01.Y2022.M01.D05.H08.M19.S03 Now if a new generation is created it would just have .G0001V00 at the end but it would still have same base time stamp. i.e USERID01.Y2022.M01.D05.H08.M19.S03.G0001V00 Even if a generation is created 10 days later or an an year later it would still have the same base time stamp. USERID01.Y2022.M01.D05.H08.M19.S03.G0021V00 The only way out of this is to create a base and generation at the same time and it will just have 1 version which makes the whole point of using GDG's useless. You are better off creating individual datasets with a date timestamp. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
