|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ beginner: MQ data conversion |
« View previous topic :: View next topic » |
Author |
Message
|
thanhnq |
Posted: Sun Feb 12, 2006 8:47 am Post subject: MQ beginner: MQ data conversion |
|
|
Newbie
Joined: 12 Feb 2006 Posts: 1
|
Hi,
I am a mq beginner and having problem with data conversion. I put a ebcdic message into a queue and set ccsid to 500. Queue Manager is on Windows XP. But when I check the message using Websphere MQ Explorer, the message data is converted to ASCII while ccsid still 500.
So does QM convert message data to its ccsid automatically? How do I disable this conversion when putting a message?
Thanks
thanhnq |
|
Back to top |
|
 |
wschutz |
Posted: Sun Feb 12, 2006 8:58 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
MQ only converts on MQGETs, never ever on MQPUTS.
The MQ explorer is being helpful and converting for you. If you use the sample program amqsget.exe, it should come back unconverted. (amqsbcg is helpful too....). _________________ -wayne |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Feb 12, 2006 1:02 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
The only way I know of converting on a PUT is by using JMS and specifying a CCSID of 500 in JNDI for the queue. When you put a message to the queue you defined this way it gets translated to CCSID 500 providing it is a TextMessage.
This put happens to a remote queue pointing to a mainframe qmgr. When looking at the message on the MF it is in CCSID 500. (no translation on the channel though I might to have to check the MF for a translation on the message exit of the channel)...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
jefflowrey |
Posted: Sun Feb 12, 2006 3:23 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
That's not the PUT that is doing the conversion. That's Java translating the text before it serializes the data onto the MQ message.
You could probably accomplish the same thing with .NET, or most other places where Unicode is the standard for string data, and the interfaces cause text conversion before the message buffer gets written to. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|