Author |
Message
|
masteringmq |
Posted: Wed Feb 11, 2009 5:40 pm Post subject: MQMD datetime field |
|
|
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 |
|
 |
mqjeff |
Posted: Wed Feb 11, 2009 6:24 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
This is a question that can only be answered by reading the manuals.
 |
|
Back to top |
|
 |
masteringmq |
Posted: Wed Feb 11, 2009 6:58 pm Post subject: |
|
|
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 |
|
 |
vol |
Posted: Wed Feb 11, 2009 9:13 pm Post subject: |
|
|
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 |
|
 |
masteringmq |
Posted: Wed Feb 11, 2009 9:29 pm Post subject: |
|
|
Master
Joined: 20 Oct 2008 Posts: 200
|
I see the following agent(amqzlaa0). |
|
Back to top |
|
 |
gbaddeley |
Posted: Thu Feb 12, 2009 5:17 pm Post subject: |
|
|
 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 |
|
 |
PeterPotkay |
Posted: Thu Feb 12, 2009 8:15 pm Post subject: |
|
|
 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 |
|
 |
gbaddeley |
Posted: Sun Feb 15, 2009 4:40 pm Post subject: |
|
|
 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 |
|
 |
|