Ccsid in WebSphere MQ

Source: Internet
Author: User

Ccsid is the identity of a character set. As a Unicode standard, a character set is defined by defining how each character in a character set corresponds to that numeric value. This means that CCSID is a digital identifier that defines the sequence of character sets. The IBM character identity schema is in document SC09-1390 (http://www-304.ibm.com/jct03002c/software/globalization/cdra/index.jsp;http:// publib.boulder.ibm.com/cgi-bin/bookmgr/books/focref00/ccontents), CCSID is the identification code that IBM uses to identify a sequence of characters. This schema defines the CCSID value of the Sdcs (single character set), the CCSID value of the MBCS (multi-character set), and the blend ccsid value of the mixed-word than characters character set. Ccsid of multiple character sets are commonly used in languages such as Chinese, Japanese, and Korean, which have a large number of characters and cannot be represented by a single-byte code value.

There are several types of conversions between Ccsid. One of these conversions is the conversion from one CCSID to another CCSID, for example, from ASCII (CCSID 1252) to EBCDIC (CCSID 37). The other is the conversion from string data to another data type. For example, convert string data to numeric values. In all of this type of conversion, the CCSID value must be identified to ensure that the conversion is performed correctly.

However, the conversion is required, and the first conversion is premised on the type of CCSID to include the characters to be converted in the CCSID type before the conversion, for example, if a Chinese character "medium" from the CCSID1381 (s-chgbpc-data) type of PC encoding The encoding of the word to other CCSID encoding requires that the same "medium" word be included in the CCSID encoded character set.

RUNMQSC MQ name, and then enter

CMD code  
    1. Dis QMGR

Show full information, there is ccsid.

From the above, the CCSID of the queue Manager on my server is 1381, and the client code assumes that the MQI character data in the client is located in the CCSID configured by the machine. If this CCSID is an unsupported CCSID or is not a required CCSID, you can overwrite it with the MQCCSID environment variable, for example, on Windows:

CMD code  
    1. SET mqccsid=1381

Or, on a UNIX system:

CMD code  
    1. Export mqccsid=1381

Install the MQ server side and create a new qmgr, you can change its mqccsid by the above method, all qmgr mqccsid in our environment is 1381.

When any user on the MQ server puts a message in the queue for that mqgr, the message uses a character encoding of 1381 (the same as the Qmgr setting), even if the export mqccsid equals something else in the user's profile, The resulting message is always the same as the Qmgr setting.

Finally, the export Mqccsid is only available on the MQ client side, and the MQ client connected to the MQ server via Export Mqserver can set mqccsid in the user's profile. If the environment Aix above if the user is not specifically set MQCCSID then the default is 819 that is en_us. Iso8859-1.

Reference article: http://blog.chinaunix.net/uid-20652643-id-1906356.html

Http://www.cnblogs.com/fromchaos/archive/2010/02/24/1672736.html

Ccsid in WebSphere MQ

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.