IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How can we capture the file creation time and date?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Venkata Ramayya

New User


Joined: 03 Dec 2007
Posts: 49
Location: United States

PostPosted: Fri Jun 20, 2008 11:42 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Jun 20, 2008 11:59 pm
Reply with quote

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
View user's profile Send private message
Venkata Ramayya

New User


Joined: 03 Dec 2007
Posts: 49
Location: United States

PostPosted: Mon Jun 23, 2008 6:33 pm
Reply with quote

Hi Kevin,

Thanks for your suggestion.

Thanks
Venkat
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top