I have a requirement where I need to find out the Last Update Time of a Flat file or a GDG. Can I know with any function of REXX?
I have to run a copy job after the flat file is updated or a new GDG has been created. I can check the creation date of the GDG and compare with Today's date but it might be that the GDG is being still written and after comparing the date, I am trying to copy the file which will create a contention. I need to copy the file as soon as the file is created.
Is there a way I can know through Rexx if a file is created today and is closed and not in open so that I can copy it?