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: 3049
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: 1193
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: 3049
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: 1193
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 To get the count of rows for every 1 ... DB2 3
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
No new posts Timestamp difference and its average ... DB2 11
No new posts To get previous month from current ti... SYNCSORT 7
No new posts Calculate with timestamp PL/I & Assembler 19
Search our Forums:

Back to Top