Author |
Message
|
wschutz |
Posted: Fri Dec 15, 2006 6:38 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
jefflowrey wrote: |
Vitor wrote: |
By default, the queue manager sets date & time on PUT. AFAIK there's no way to actually stop it doing that... |
In fact, I know it's possible. I don't know *how*, but in some manner or another a COBOL program at my current site is sending NULL PutDate and PutTimes. |
NULL, or blanks? s/b blanks.... _________________ -wayne |
|
Back to top |
|
 |
kevinf2349 |
Posted: Fri Dec 15, 2006 7:05 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Wandering slightly off topic here but a couple of questions spring to mind here....
1) Why would you not want know the put date and time for a message?
2) What does 'nulling' the date and time do for performance monitoring? My guess would be that good performance monitors would take their store their own value for these but I am not 100% sure that in-house written ones would. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Dec 15, 2006 7:11 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kevinf2349 wrote: |
1) Why would you not want know the put date and time for a message?
|
Damned if I know - like I said, I've never seen it done (I encounter a lot of "set all the options to defaults, put the message and run!" coding). _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Dec 15, 2006 8:08 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The fields are NULL, not blank.
MQ Explorer lists them as always the current time and date. MQVisualEdit listed them as NULL.
I'm quite sure that this COBOL program does not INTEND to do this. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
tleichen |
Posted: Fri Dec 15, 2006 8:42 am Post subject: |
|
|
Yatiri
Joined: 11 Apr 2005 Posts: 663 Location: Center of the USA
|
jefflowrey wrote: |
Vitor wrote: |
By default, the queue manager sets date & time on PUT. AFAIK there's no way to actually stop it doing that... |
In fact, I know it's possible. I don't know *how*, but in some manner or another a COBOL program at my current site is sending NULL PutDate and PutTimes. |
I'm puzzled.... what possible reason would there be for doing this?  _________________ IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer |
|
Back to top |
|
 |
wschutz |
Posted: Fri Dec 15, 2006 9:12 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Jeff, quite interesting:
Quote: |
For the MQPUT and MQPUT1 calls, this is an input/output field if MQPMO_SET_ALL_CONTEXT is specified in the PutMsgOpts parameter. The queue manager does not check the contents of the field, except that any information following a null character within the field is discarded. The queue manger converts the null character and any following characters to blanks. If MQPMO_SET_ALL_CONTEXT is not specified, this field is ignored on input and is an output-only field. |
_________________ -wayne |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Dec 15, 2006 9:21 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Maybe it is the normal behavior of MQ Explorer to convert a space filled PutTime and PutDate to current time, and MQVisualEdit to report it as null.
Tleichen - I'm quite sure it's being done on accident. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
tleichen |
Posted: Fri Dec 15, 2006 10:45 am Post subject: |
|
|
Yatiri
Joined: 11 Apr 2005 Posts: 663 Location: Center of the USA
|
Great find, Wayne! Interesting, but ...
Jeff, I did not mean to imply that I was talking about the case you specified specifically. What I am confused about is why IBM put this capability in there to begin with. I could maybe see if you wanted to copy one queue's data to another with all the context fields intact. But aside of that, what legitimate use is there in being able to set put date/time?  _________________ IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer |
|
Back to top |
|
 |
|