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

How to get MQPUT Timestamp?


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2591
Location: NYC,USA

PostPosted: Wed Aug 08, 2018 10:33 am
Reply with quote

I am trying to see if there is any option or a way to get the time stamp when the actual message is PUT into MQ. Is there a way by MQINQ OR MQGET available in the application program ?
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1100
Location: Dublin, Ireland

PostPosted: Wed Aug 08, 2018 12:36 pm
Reply with quote

The PutTime is in the message descriptor (MQMD) that is returned for the MQGET. MQINQ gives just queue attributes.

Regards

Garry
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2591
Location: NYC,USA

PostPosted: Wed Aug 08, 2018 7:04 pm
Reply with quote

Garry, Thanks and I was searching for "PIC X(26)" all along assuming it is going to be same as DB2 format.
Code:

** Date when message was put
 15  PUTDATE PIC X(8) VALUE SPACES.

** Time when message was put
 15  PUTTIME PIC X(8) VALUE SPACES.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1100
Location: Dublin, Ireland

PostPosted: Wed Aug 08, 2018 7:06 pm
Reply with quote

Rohit, you're welcome. icon_smile.gif

Garry
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 -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts Calculate with timestamp PL/I & Assembler 19
No new posts Timestamp in TCP/IP for Z/VSE JCL JCL & VSAM 0
No new posts how to add date & timestamp to th... DFSORT/ICETOOL 5
No new posts DB2 Timestamp field weird behaviour. DB2 8
No new posts row change timestamp DB2 3
Search our Forums:

Back to Top