Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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 File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us