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
 
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: 1249
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
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Spool Extract for Z /os 1.04 version Khadhar Basha CLIST & REXX 3 Thu Sep 28, 2017 3:14 pm

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