|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQGET with MQGMO_CONVERT and MQMD with MQFMT_NONE |
« View previous topic :: View next topic » |
Author |
Message
|
PeterPotkay |
Posted: Wed Sep 30, 2015 9:20 am Post subject: MQGET with MQGMO_CONVERT and MQMD with MQFMT_NONE |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
|
Back to top |
|
 |
rekarm01 |
Posted: Mon Oct 05, 2015 6:25 pm Post subject: Re: MQGET with MQGMO_CONVERT and MQMD with MQFMT_NONE |
|
|
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 |
|
 |
mqjeff |
Posted: Tue Oct 06, 2015 5:09 am Post subject: Re: MQGET with MQGMO_CONVERT and MQMD with MQFMT_NONE |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Wow! We haven't seen that spirit hear since... well, it's been a while. Welcome back! _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue Oct 06, 2015 5:08 pm Post subject: Re: MQGET with MQGMO_CONVERT and MQMD with MQFMT_NONE |
|
|
 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 |
|
 |
fjb_saper |
Posted: Tue Oct 06, 2015 10:08 pm Post subject: Re: MQGET with MQGMO_CONVERT and MQMD with MQFMT_NONE |
|
|
 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 |
|
 |
rekarm01 |
Posted: Thu Oct 15, 2015 6:49 pm Post subject: Re: MQGET with MQGMO_CONVERT and MQMD with MQFMT_NONE |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|