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 » MQGET with MQGMO_CONVERT and MQMD with MQFMT_NONE

Post new topic  Reply to topic
 MQGET with MQGMO_CONVERT and MQMD with MQFMT_NONE « View previous topic :: View next topic » 
Author Message
PeterPotkay
PostPosted: Wed Sep 30, 2015 9:20 am    Post subject: MQGET with MQGMO_CONVERT and MQMD with MQFMT_NONE Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

If an application does an MQGET with Convert, and the message has MQFMT_NONE for its MQMD Format, can we rely on the application always getting a Warning for the MQ Completion Code and (RC2110): MQRC_FORMAT_ERROR for the MQRC?


http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.tro.doc/q041710_.htm?lang=en
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
rekarm01
PostPosted: Mon Oct 05, 2015 6:25 pm    Post subject: Re: MQGET with MQGMO_CONVERT and MQMD with MQFMT_NONE Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

PeterPotkay wrote:
If an application does an MQGET with Convert, and the message has MQFMT_NONE for its MQMD Format, can we rely on the application always getting a Warning for the MQ Completion Code and (RC2110): MQRC_FORMAT_ERROR for the MQRC?

No. The Knowledge Center describes conversion processing in much greater detail:

Quote:
If one or more of the following is true, no conversion is necessary:
  • The message data is already in the character set and encoding required by the application issuing the MQGET call...
  • The length of the message data is zero.
  • The length of the Buffer parameter of the MQGET call is zero.


Not to mention that if some other unrelated error occurs during the MQGET, the MQCC and MQRC may describe the unrelated error instead.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Oct 06, 2015 5:09 am    Post subject: Re: MQGET with MQGMO_CONVERT and MQMD with MQFMT_NONE Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

rekarm01 wrote:


Wow! We haven't seen that spirit hear since... well, it's been a while. Welcome back!
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Tue Oct 06, 2015 5:08 pm    Post subject: Re: MQGET with MQGMO_CONVERT and MQMD with MQFMT_NONE Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

rekarm01 wrote:
PeterPotkay wrote:
If an application does an MQGET with Convert, and the message has MQFMT_NONE for its MQMD Format, can we rely on the application always getting a Warning for the MQ Completion Code and (RC2110): MQRC_FORMAT_ERROR for the MQRC?

No. The Knowledge Center describes conversion processing in much greater detail:

Quote:
If one or more of the following is true, no conversion is necessary:
  • The message data is already in the character set and encoding required by the application issuing the MQGET call...
  • The length of the message data is zero.
  • The length of the Buffer parameter of the MQGET call is zero.


So, the thing to know is that MQ makes the call that conversion is not needed first, so therefore then doesn't bother checking the MQMD Format field.
And thus no warning is returned in those cases about a bad or blank format field.

It could have been that when MQ was requested to convert, perhaps it first checked the format field (before going thru trouble of determining if conversion was going to be needed), and thus would throw the warning always.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Oct 06, 2015 10:08 pm    Post subject: Re: MQGET with MQGMO_CONVERT and MQMD with MQFMT_NONE Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

PeterPotkay wrote:


So, the thing to know is that MQ makes the call that conversion is not needed first, so therefore then doesn't bother checking the MQMD Format field.
And thus no warning is returned in those cases about a bad or blank format field.

It could have been that when MQ was requested to convert, perhaps it first checked the format field (before going thru trouble of determining if conversion was going to be needed), and thus would throw the warning always.

You still could not rely on always as the warning would be superseeded by any other warning or error happening (like message trunkated, etc...) innocent:
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
rekarm01
PostPosted: Thu Oct 15, 2015 6:49 pm    Post subject: Re: MQGET with MQGMO_CONVERT and MQMD with MQFMT_NONE Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

mqjeff wrote:
Wow! We haven't seen that spirit here since ... well, it's been a while. Welcome back!

Thanks. I don't have as much free time for these forums lately; I can't check them out any time I like, but I could never leave ...

PeterPotkay wrote:
It could have been that when MQ was requested to convert, perhaps it first checked the format field (before going thru trouble of determining if conversion was going to be needed), and thus would throw the warning always.

Dusting off my hard copy of the MQSeries APR, it says the same thing as the latest documentation, regarding conversion processing; it has been checking whether conversion is necessary before validating the Format field for quite some time now.
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 » MQGET with MQGMO_CONVERT and MQMD with MQFMT_NONE
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.