大家好,我正在使用IBM MQ DLL通过队列发送消息。我想知道什么是“MQCCSI_INHERIT”当为mqmessage characterset设置时,是吗? [英] 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?

查看:273
本文介绍了大家好,我正在使用IBM MQ DLL通过队列发送消息。我想知道什么是“MQCCSI_INHERIT”当为mqmessage characterset设置时,是吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在使用IBM MQ dll通过队列发送消息。



我想知道MQCCSI_INHERIT在为MQMessage Characterset设置时做了什么?



我尝试了什么:



我正在尝试使用代码页1208来发送从我的目的地到目的地的消息,但是它是以1200发送的。

解决方案

最好看的地方是文档 - IBM知识中心 [ ^ ]

引用:

MQCCSI_INHERIT

消息中的字符数据与此结构的字符集相同;这是队列管理器的字符集。 (仅对于MQMD,MQCCSI_INHERIT与MQCCSI_Q_MGR具有相同的含义。)

队列管理器将与消息一起发送的MQMD中的此值更改为MQMD的实际字符集标识符。如果没有发生错误,则MQGET调用不返回值MQCCSI_INHERIT。



如果MQMD中的PutApplType字段的值为MQAT_BROKER,则不要使用MQCCSI_INHERIT。 blockquote>我已经鼓舞了相关的行。



您可能想要设置MQCCSI_EMBEDDED并在MQPUT调用中提供字符集标识符。 (MQCCSI_INHERIT之后的文档中的下一部分)


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.

解决方案

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)


这篇关于大家好,我正在使用IBM MQ DLL通过队列发送消息。我想知道什么是“MQCCSI_INHERIT”当为mqmessage characterset设置时,是吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆