Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How can we capture the file creation time and date?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Venkata Ramayya

New User


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

PostPosted: Fri Jun 20, 2008 11:42 pm    Post subject: How can we capture the file creation time and date?
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

Moderator Team Head


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

PostPosted: Fri Jun 20, 2008 11:59 pm    Post subject: Reply to: How can we capture the file creation time and date
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: 39
Location: United States

PostPosted: Mon Jun 23, 2008 6:33 pm    Post subject: Reply to: How can we capture the file creation time and date
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts DSNACCOX (can it be run on 1 db/ts, t... SRICOBSAS DB2 3 Sat May 06, 2017 12:59 am
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us