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

File creation date and time for PS/GDG version files


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

New User


Joined: 09 Sep 2007
Posts: 10
Location: Chennai

PostPosted: Thu Sep 24, 2009 2:11 am
Reply with quote

Hi,
I need to find the file creation date and time for a PS file/GDG version file.
Is there a way in REXX or any other tool that can help in obtaining the file creation date and especially the time when it was created.
Thanks
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Sep 24, 2009 4:01 am
Reply with quote

Hi Baski,

interrogating SMF records would be your best bet.


Gerry
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Sep 24, 2009 11:44 am
Reply with quote

/RANT ON

When talking about GDS it is important to use the correct terminology, as both version and generation are both valid in terms of a GDS.

It is a well known fact that only one version of a GDS may exist at any one time, however, multiple generations may exist together.

Please learn and use the correct terminology when posting, as using the wrong term can cause confusion and possibly delay a resolution to your problem

/RANT OFF

DCOLLECT will give a date value, but not time
SMF type 61 (I think) is catalog creation record, so should be fairly accurate, if not type 15 will give "Open for output"
Back to top
View user's profile Send private message
Baskaran Gunasekaran

New User


Joined: 09 Sep 2007
Posts: 10
Location: Chennai

PostPosted: Mon Sep 28, 2009 7:57 pm
Reply with quote

Hi All,
Thanks for your reply.
My requirement is to capture the Date AND Time. Is there any way to get the "Time" when the file was created?
Does SMF records contain the time detail?
Thanks
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Sep 28, 2009 8:12 pm
Reply with quote

Baskaran Gunasekaran wrote:
Does SMF records contain the time detail?
Thanks

I somehow think that is the reason why Gerry suggested using SMF records.

Also, may I ask the reason behind this request. In over 30 years in IT I have never been asked to find out such things.
Back to top
View user's profile Send private message
Baskaran Gunasekaran

New User


Joined: 09 Sep 2007
Posts: 10
Location: Chennai

PostPosted: Mon Sep 28, 2009 9:49 pm
Reply with quote

Hi expat,
I will try to look at the SMF records, to see if the creation time can be captured.
Our system is responsible of sending letter communications to customers. We have several feeder system from where we get the raw data which we format and send it for printing. Business wants to track the TIME IN and TIME OUT of records from our system. We have two kinds of feed for our system, one is MQ feed and the other is File feed. MQ feed we have the date and time in the MQ header from which we can extract the information, but for file feed we need the date and time to be captured to generate the report when we recieved a particular file feed and when it was sent out of our system.
Thanks
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Tue Sep 29, 2009 1:18 am
Reply with quote

Since this is a requirement for future feeds, not retroactive ones, it seems it would be easier to add steps to your JCL to capture the date/time of the file feeds and store them in a file or DB2 table. Dealing with SMF records is not for the faint-of-heart.
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 Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
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
Search our Forums:

Back to Top