Author |
Message
|
blovell |
Posted: Wed Mar 18, 2009 9:05 am Post subject: MQRC 2110 |
|
|
 Acolyte
Joined: 08 Feb 2006 Posts: 63 Location: Alpharetta, GA
|
We are in the process of moving our clients from MQ v5.3 to MQ v7.0. Our clients utilize a standard SDR -> RCVR channel environment. All client data is placed in a QLOCAL within my QMGR. My application is complaining of a MQRC 2110 when issuing a MQGET on the queue. I am encountering the same when using the amqsget samp program. The client is sending from a Solaris based version of MQ. We are running MQ on RHEL 4.0 now. I have compared MQMD and see no differences. We are using the same QMGR name as it was used on the 5.3 interface. (This was done to simplify the migration) Any ideas?  _________________ Bradley M. Lovell |
|
Back to top |
|
 |
blovell |
Posted: Wed Mar 18, 2009 9:49 am Post subject: |
|
|
 Acolyte
Joined: 08 Feb 2006 Posts: 63 Location: Alpharetta, GA
|
The MQMD from the client doesn't appear to be populating the Format field of the MQMD. Is it possible that 5.3 was more relax on the missing format field compared to 7.0? _________________ Bradley M. Lovell |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Mar 18, 2009 10:17 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
What does the Application Programming Reference for v5.3 say about the Format field of the MQMD? Is there an initial value? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
blovell |
Posted: Wed Mar 18, 2009 10:56 am Post subject: |
|
|
 Acolyte
Joined: 08 Feb 2006 Posts: 63 Location: Alpharetta, GA
|
I dont see an initial value after reading. It is simply a listing of possible values. Which does really apply to my question. I am reading now to see if there have been any fix packs releases w/ 7 regarding this problem. _________________ Bradley M. Lovell |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Mar 18, 2009 11:21 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
|
Back to top |
|
 |
vol |
Posted: Wed Mar 18, 2009 10:19 pm Post subject: |
|
|
Acolyte
Joined: 01 Feb 2009 Posts: 69
|
if you were formerly using the SDR channel to convert the data and are now converting in the client MQGET, this might explain the difference. in a SDR channel MCA, 2110 is ignored if the Format is blank. you have to do this yourself in your own app. |
|
Back to top |
|
 |
blovell |
Posted: Mon Mar 23, 2009 12:08 pm Post subject: |
|
|
 Acolyte
Joined: 08 Feb 2006 Posts: 63 Location: Alpharetta, GA
|
Our client sent their data into us in the past with the Format Field blank. (This was done with us using 5.3) Now that we have upgraded any file sent to my QMGR without a format field, are experiencing a 2110. I have had the client manually add MQSTR and the problem clears itself. The problem is, this cannot be done manually forever. Either they will have to recode their app to popluate this field or, IBM may have a fix pack for 7.0 to not require it. I would imagine others would have seen this issue as well. _________________ Bradley M. Lovell |
|
Back to top |
|
 |
PeterPotkay |
Posted: Mon Mar 23, 2009 4:42 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
If the getting app is issuing the MQGET with the convert option, and the MQMD's Format of the message is blank, a 2110 is expected. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
blovell |
Posted: Tue Mar 24, 2009 5:27 am Post subject: |
|
|
 Acolyte
Joined: 08 Feb 2006 Posts: 63 Location: Alpharetta, GA
|
But does the sample program amqsget use a convert? I get the 2110 when using the sample amqsget program as well. _________________ Bradley M. Lovell |
|
Back to top |
|
 |
Vitor |
Posted: Tue Mar 24, 2009 5:40 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
blovell wrote: |
But does the sample program amqsget use a convert? |
Yes it does.
blovell wrote: |
I get the 2110 when using the sample amqsget program as well. |
I'd expect that (like my assoicate) on any application which attempted a convert on a message with a blank or unrecognised format. AFAIK this was true even on v5.3 (indeed true on v5.1).
I'd also recommend it's populated with MQFMT_STRING constant rather than a literal value. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Mr Butcher |
Posted: Tue Mar 24, 2009 5:40 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
because the sourcecode of the sample is included too you are able to check the get options _________________ Regards, Butcher |
|
Back to top |
|
 |
blovell |
Posted: Tue Mar 24, 2009 5:46 am Post subject: |
|
|
 Acolyte
Joined: 08 Feb 2006 Posts: 63 Location: Alpharetta, GA
|
One more question. Has this changed between 5.3 and 7.0. We don't notice the same on the older version of MQ. We are using the same code to issue the MQGET function with the Convert option. 5.3 did not give us a 2110 when the format field is blank. _________________ Bradley M. Lovell |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Mar 24, 2009 6:02 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Quote: |
Is it possible that 5.3 was more relax on the missing format field compared to 7.0? |
The initial value for the format field is clearly identified as blanks in v5.3, v6 and v7, documentation. I don't recall what it was in v2.1; but I'd guess it was blanks way back then.
The WMQ APG and APR have always advised that app developers are responsible for setting all the fields in the MQMD and other objects to whatever values they require.
It was and is poor programming, a worst-practice, to not understand what your (the developers) choice to take the defaults, and how that will affect application behavior.
Sorry, no sympathy here. It's a self-inflicted wound. Fix the program. Get over it. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Mar 24, 2009 6:03 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
blovell wrote: |
Has this changed between 5.3 and 7.0. |
Vitor wrote: |
AFAIK this was true even on v5.3 (indeed true on v5.1).
|
blovell wrote: |
5.3 did not give us a 2110 when the format field is blank. |
I've just asked one of the WMQv5.3 queue managers here (Solaris of unknown vintage) to amqsget a message with a format of ' ' and it gave me a 2110.
I'm wondering if you've lost a home grown conversion exit in your upgrade.... If so, as my associate says, it was a non-best-practice way of getting round a blank format then. Take the hit and fix the code. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
blovell |
Posted: Tue Mar 24, 2009 6:13 am Post subject: |
|
|
 Acolyte
Joined: 08 Feb 2006 Posts: 63 Location: Alpharetta, GA
|
I appreciate all help. Unfortunately I(we) have no ability to guide how our clients code their application that puts files onto their MQ QMGRs. Thanks again to all that helped. _________________ Bradley M. Lovell |
|
Back to top |
|
 |
|