Click here to Skip to main content
13,863,289 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi All,

I am using IBM MQ dll for sending message over the queue.

I want to know what does "MQCCSI_INHERIT" do, when it is set for MQMessage Characterset?

What I have tried:

I am trying to sen the message from my end to the destination with the codepage 1208 but is it being sent as 1200.
Updated 12-Feb-19 2:26am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The best place to look is in the documentation - IBM Knowledge Center[^]
Character data in the message is in the same character set as this structure; this is the queue manager's character set. (For MQMD only, MQCCSI_INHERIT has the same meaning as MQCCSI_Q_MGR).
The queue manager changes this value in the MQMD that is sent with the message to the actual character set identifier of MQMD. Provided no error occurs, the value MQCCSI_INHERIT is not returned by the MQGET call.

Do not use MQCCSI_INHERIT if the value of the PutApplType field in MQMD is MQAT_BROKER.
I've emboldened the relevant line.

You probably want to set MQCCSI_EMBEDDED and provide the character set identifier in the MQPUT call. (the next section down in the documentation after MQCCSI_INHERIT)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.190214.1 | Last Updated 12 Feb 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100