Posted: Wed Nov 14, 2012 6:49 am Post subject: Re: Put error when MQRFH2 exists with utf-16 message
Apprentice
Joined: 17 Mar 2011 Posts: 32
rekarm01 wrote:
The declared fields in an MQ header have fixed byte lengths. The character fields in the MQRFH2 header (other than NameValueData) should consist of single-byte characters. Typically, the character set and encoding of the MQMD is defined by the queue manager, and the character set and encoding of each subsequent portion of the message is defined in the preceding header. So, for:
MQMD -> MQRFH2 (+ NameValueData) -> message body
the qmgr ccsid (which describes the MQMD character fields) and the MQMD.ccsid (which describes the declared MQRFH2 character fields) must have "single-byte characters for the characters that are valid in queue names".
The NameValueCCSID (which describes the NameValueData) must be 1200, 1208, (or 13488, or 17584), and the MQRFH2.ccsid (which describes the message body) can use any supported code page.
That solved the problem! Changed the CCSID of the MQMD to 1208 and kept MQRFH2 to 1202 and it worked fine.
Thanks!!
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