ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » MQMD datetime field

Post new topic  Reply to topic
 MQMD datetime field « View previous topic :: View next topic » 
Author Message
masteringmq
PostPosted: Wed Feb 11, 2009 5:40 pm    Post subject: MQMD datetime field Reply with quote

Master

Joined: 20 Oct 2008
Posts: 200

In the MQMD structure there is the PutDate and PutTime field. It holds the date and time the message is put. Therefore In MQ explorer I attempted to put a message into a local queue and found that the message date and time is set when I put a message on the local queue. Is the date and time field set before or after the message is put into the local queue?. If before that would mean the field is set at the application level. If it is after that would mean the field is set at MQ level.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Feb 11, 2009 6:24 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

This is a question that can only be answered by reading the manuals.

Back to top
View user's profile Send private message
masteringmq
PostPosted: Wed Feb 11, 2009 6:58 pm    Post subject: Reply with quote

Master

Joined: 20 Oct 2008
Posts: 200

At the application level I can set the fields of MQMD structure before putting the messages into the queue. For example I can set the correlation id of the messages. Suppose if I were to set only the correlation id without touching any other field, it would mean that at MQ level all the other field will be filled with the default value while putting the messages into the queue.

Last edited by masteringmq on Wed Feb 11, 2009 9:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
vol
PostPosted: Wed Feb 11, 2009 9:13 pm    Post subject: Reply with quote

Acolyte

Joined: 01 Feb 2009
Posts: 69

The time is set in the qmgr process that is handling the put, the agent (amqzlaa0).
Back to top
View user's profile Send private message
masteringmq
PostPosted: Wed Feb 11, 2009 9:29 pm    Post subject: Reply with quote

Master

Joined: 20 Oct 2008
Posts: 200

I see the following agent(amqzlaa0).
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Thu Feb 12, 2009 5:17 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

vol wrote:
The time is set in the qmgr process that is handling the put, the agent (amqzlaa0).


Yes. MQ ignores anything that the app prog sets the PutDate and PutTime fields in the MQMD. On a put, MQ ignores the setting of any field that is not defined as INPUT in the App Prog Ref manual.
_________________
Glenn
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Thu Feb 12, 2009 8:15 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

These 2 fields are part of the origin context. If you use the correct options on your put, a programmer can set these fields in their code.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Sun Feb 15, 2009 4:40 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

PeterPotkay wrote:
These 2 fields are part of the origin context. If you use the correct options on your put, a programmer can set these fields in their code.


WMQ App Prog Ref v7:
For the MQPUT and MQPUT1 calls, this is an input/output field if MQPMO_SET_ALL_CONTEXT is specified in the PutMsgOpts parameter.

Sorry, I missed that. I wouldn't recommend setting PutDate and PutTime, it could cause a lot of confusion !
_________________
Glenn
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » MQMD datetime field
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.