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 » IBM MQ API Support » set message context partially

Post new topic  Reply to topic Goto page Previous  1, 2
 set message context partially « View previous topic :: View next topic » 
Author Message
wschutz
PostPosted: Fri Dec 15, 2006 6:38 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
kevinf2349
PostPosted: Fri Dec 15, 2006 7:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Fri Dec 15, 2006 7:11 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Fri Dec 15, 2006 8:08 am    Post subject: Reply with quote

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
View user's profile Send private message
tleichen
PostPosted: Fri Dec 15, 2006 8:42 am    Post subject: Reply with quote

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
View user's profile Send private message
wschutz
PostPosted: Fri Dec 15, 2006 9:12 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
jefflowrey
PostPosted: Fri Dec 15, 2006 9:21 am    Post subject: Reply with quote

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
View user's profile Send private message
tleichen
PostPosted: Fri Dec 15, 2006 10:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ API Support » set message context partially
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.