Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
1.00/5 (1 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.
Posted
Updated 12-Feb-19 1:26am

1 solution

The best place to look is in the documentation - IBM Knowledge Center[^]
Quote:
MQCCSI_INHERIT
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)
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900