Posted: Fri Oct 25, 2013 3:36 am Post subject: MQHSAP message encoding on Linux needs to be 273? Not 546?
Acolyte
Joined: 26 Sep 2010 Posts: 70
Hi there,
I have an application the puts messages onto a queue, and sometimes these messages need to have the MQHSAP header.
My understanding is that the encoding for MQ on the different boxes is:
MQENC_* (Encoding)
IBM® i 273 X'00000111'
Linux 546 X'00000222'
UNIX systems 273 X'00000111'
Windows 546 X'00000222'
Micro Focus COBOL on Windows 17 X'00000011'
z/OS® 785 X'00000311'
So from what I understand above Linux wants to use encoding 546.
If I try do an MQPUT on my Red Hat Linux box to MQ 7.1 with a message that has MQHSAP specified I always get the following:
Reason code: 2142
Completion code: 2
That error happens when I do not change the Linux encoding of 546.
If I make the encoding 273 the MQPUT works perfectly.
Also interesting is that if I use the commercial product "MQ Visual Edit" from http://www.capitalware.biz ......if I try insert a message onto a queue on Linux with MQHSAP it ONLY allows encoding 273 as well.....the moment I try *force* the encoding to the Linux default of 546 I get the exact same error...2142...
Why would a tool like MQ Visual Edit default all messages I try INSERT manually onto a queue to 273 if the Linux native encoding is meant to be 546?
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