Author |
Message
|
MoRgAAth |
Posted: Wed Jul 17, 2013 4:01 am Post subject: I must define the ccsid as 1208 in the MQMD |
|
|
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 |
|
 |
fatherjack |
Posted: Wed Jul 17, 2013 5:14 am Post subject: Re: I must define the ccsid as 1208 in the MQMD |
|
|
 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 |
|
 |
Tibor |
Posted: Wed Jul 17, 2013 5:51 am Post subject: |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
|
Back to top |
|
 |
zpat |
Posted: Wed Jul 17, 2013 7:18 am Post subject: |
|
|
 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 |
|
 |
rekarm01 |
Posted: Wed Jul 17, 2013 10:32 am Post subject: |
|
|
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 |
|
 |
|