View previous topic :: View next topic
|
Author |
Message |
Venkata Ramayya
New User
Joined: 03 Dec 2007 Posts: 49 Location: United States
|
|
|
|
Hi,
I have two datasets one is current version and other is previous version. First thing is I have to find out the creation date and time of these files. Based on that I should build up the below logic.
Case 1 : Current version creation < 22:45(Time) and Previous version
creation >22:45 then
Load these two files to standard file
Standard file creates every day and goes to interface application.
Case 2 : Current version not created before 22:45 and Previous version
creation >22:45 then
Load previous version to standard file.
Case 3 : Current version creation < 22:45 and Previous version creation
< 22:45 then
Load current version to standard file.
Case 4 : Current version not created before 22:45 and previous version
creation <22:45 then
Do not load any file to standard file
Can anybody help me how I can do this?
Thanks
Venkat |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
If these datasets are on tape, then you can probably find those details from your Tape Management system.
If they're on DASD, then I know of no way to determine the creation TIME other than to look at the SMF records fro when they were created.
Honestly, your process that creates the datasets should add some sort of header to them that you could read and process as needed. |
|
Back to top |
|
|
Venkata Ramayya
New User
Joined: 03 Dec 2007 Posts: 49 Location: United States
|
|
|
|
Hi Kevin,
Thanks for your suggestion.
Thanks
Venkat |
|
Back to top |
|
|
|