View previous topic :: View next topic |
Author |
Message |
nbdtrjk1 Beginner
Joined: 12 Apr 2007 Posts: 76 Topics: 41
|
Posted: Sat Oct 24, 2009 7:46 am Post subject: get the file creation time |
|
|
All,
We have a requirement, where we need to know the time when the file got created (PS/GDG new generation file creation time).
Could you please help me on this |
|
Back to top |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Sat Oct 24, 2009 7:53 am Post subject: |
|
|
Robert Sample wrote: | The only reliable way is to access the SMF data, which for an old file may not be around any more, and requires extensive processing to get the desired data |
_________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
|
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
Posted: Sun Oct 25, 2009 10:33 pm Post subject: |
|
|
Too lazy to write your own replies these days, Dick? _________________ ....Terry |
|
Back to top |
|
|
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Mon Oct 26, 2009 3:17 am Post subject: |
|
|
He, usually, does not want to re-invent the wheel... _________________ Regards,
Anuj |
|
Back to top |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Mon Oct 26, 2009 5:17 am Post subject: |
|
|
just wanted to give credit due. or he's the one that said it _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
|
expat Intermediate
Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Mon Oct 26, 2009 8:01 am Post subject: Re: get the file creation time |
|
|
nbdtrjk1 wrote: |
We have a requirement, where we need to know the time when the file got created (PS/GDG new generation file creation time). |
OK, I have geard a few strange requirements in the past, but could you possibly explain to me the need for this. _________________ If it's true that we are here to help others,
then what exactly are the others here for ? |
|
Back to top |
|
|
tcurrier Intermediate
Joined: 10 Feb 2006 Posts: 188 Topics: 68
|
Posted: Tue Dec 08, 2009 6:07 pm Post subject: |
|
|
If you're willing to read the file to determine the creation time, and you are the one creating the file, you could create something like a CONTROL DATE record...
In our systems, we have a CONTROL DATE (CD) record on a lot of our input files. This is to ensure that we're not pulling incorrect files into our production jobs. You could add the system time to the 'CD' record....
Example: CD 120809 06:07PM
Not sure if this is what you really wanted, but just a thought .... |
|
Back to top |
|
|
|
|