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 Java / JMS » I must define the ccsid as 1208 in the MQMD

Post new topic  Reply to topic
 I must define the ccsid as 1208 in the MQMD « View previous topic :: View next topic » 
Author Message
MoRgAAth
PostPosted: Wed Jul 17, 2013 4:01 am    Post subject: I must define the ccsid as 1208 in the MQMD Reply with quote

Newbie

Joined: 15 Jul 2013
Posts: 1

Hey all,

I am writing a Visual Studio VB app which will put a message on the queue.
I have to set CCSID as 1208 in the MQMD.

I need to understand where I can set this parameter?

The APP runs on the Windows server and the CCSID going through is 1200 UTF-16.

I have an idea I need to set the MQPutMessageOptions parameters but cannot find any detail on this.

Regards
Back to top
View user's profile Send private message Send e-mail
fatherjack
PostPosted: Wed Jul 17, 2013 5:14 am    Post subject: Re: I must define the ccsid as 1208 in the MQMD Reply with quote

Knight

Joined: 14 Apr 2010
Posts: 522
Location: Craggy Island

MoRgAAth wrote:
I need to understand where I can set this parameter?


Then read the doc. It's in the Application Progamming Guide or Reference.


MoRgAAth wrote:
I have to set CCSID as 1208 in the MQMD.


Why do you have to set it to 1208 when you say
MoRgAAth wrote:
the CCSID going through is 1200 UTF-16.


You need to set the CCSID field in the MQMD to the CCSID of the character data within the message body.
_________________
Never let the facts get in the way of a good theory.
Back to top
View user's profile Send private message
Tibor
PostPosted: Wed Jul 17, 2013 5:51 am    Post subject: Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

You should use CodedCharSetId in the MQMD structure (see more in the Infocenter)
Back to top
View user's profile Send private message
zpat
PostPosted: Wed Jul 17, 2013 7:18 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Remember the MQMD.CCSID value for the codepage must match the actual message data contents.

MQ does no conversion on the MQPUT, it won't change the data from 1200 format to 1208 format just because you changed the header.

I don't know if the VB layer does this - you can check the messages on the queue. Just remember to browse them without the convert option so you see the original codepage, as some tools automatically convert the messages to the windows code page when you view them.
Back to top
View user's profile Send private message
rekarm01
PostPosted: Wed Jul 17, 2013 10:32 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

zpat wrote:
Remember the MQMD.CCSID value for the codepage must match the actual message data contents.

MQ does no conversion on the MQPUT, it won't change the data from 1200 format to 1208 format just because you changed the header.

I don't know if the VB layer does this ...

Assuming that VB is using .NET, the .NET layer can convert on write, based on the MQMessage.CharacterSet property (aka MQMD.CCSID), though that depends on which write method the application uses to write the data.
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 Java / JMS » I must define the ccsid as 1208 in the MQMD
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.