ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » MQ beginner: MQ data conversion

Post new topic  Reply to topic
 MQ beginner: MQ data conversion « View previous topic :: View next topic » 
Author Message
thanhnq
PostPosted: Sun Feb 12, 2006 8:47 am    Post subject: MQ beginner: MQ data conversion Reply with quote

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
View user's profile Send private message
wschutz
PostPosted: Sun Feb 12, 2006 8:58 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
fjb_saper
PostPosted: Sun Feb 12, 2006 1:02 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Sun Feb 12, 2006 3:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » MQ beginner: MQ data conversion
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.