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
 

 

File creation date and time for PS/GDG version files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: File creation date and time for PS/GDG version files
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: 1703
Location: Australia

PostPosted: Thu Sep 24, 2009 4:01 am    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Sep 24, 2009 11:44 am    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Sep 28, 2009 8:12 pm    Post subject:
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    Post subject:
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: 1239
Location: Richfield, MN, USA

PostPosted: Tue Sep 29, 2009 1:18 am    Post subject:
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    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 CICS transaction slow response time vasanthz All Other Mainframe Topics 1 Thu Jan 19, 2017 1:31 am
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts DD DUMMY & CPU TIME Nileshkul Testing & Performance analysis 16 Mon Dec 19, 2016 11:35 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm


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