|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQSeries EBCDIC |
« View previous topic :: View next topic » |
Author |
Message
|
richdedeyan |
Posted: Thu Apr 25, 2002 11:45 am Post subject: |
|
|
Newbie
Joined: 24 Apr 2002 Posts: 7
|
Hello All,
I am a newbie to MQSeries and JMS. I am trying to send a message using the MQseries adapter for Java to an MQSeries server linked to an MVS mainframe. The messages must be encoded in EBCDIC. The message being sent includes backslashes ''. When I send the message, it gets converted in the queue as Ö.
I have the message set up accordingly:
sendMsg.characterSet = MQC.MQENC_NATIVE;
sendMsg.format=MQC.MQFMT_STRING;
Anyone else run into this problem?
Thanks for your help,
Rich
|
|
Back to top |
|
 |
StefanSievert |
Posted: Thu Apr 25, 2002 1:13 pm Post subject: |
|
|
 Partisan
Joined: 28 Oct 2001 Posts: 333 Location: San Francisco
|
Quote: |
On 2002-04-25 12:45, richdedeyan wrote:
Hello All,
I am a newbie to MQSeries and JMS. I am trying to send a message using the MQseries adapter for Java to an MQSeries server linked to an MVS mainframe. The messages must be encoded in EBCDIC. The message being sent includes backslashes ''. When I send the message, it gets converted in the queue as Ö.
I have the message set up accordingly:
sendMsg.characterSet = MQC.MQENC_NATIVE;
sendMsg.format=MQC.MQFMT_STRING;
Anyone else run into this problem?
Thanks for your help,
Rich
|
Rich,
the first thing to note is that you are setting the 'characterSet' attribute with a constant for the 'encoding' attribute. The default for the characterSet is MQC.MQCCSI_Q_MGR (=CCSID 819).
Secondly, you need to know what CCSID your target queue manager is running with. Many MVS queue managers I've seen are using the default provided by IBM, which is 500. The 'special' characters are not properly converted between 819 and 500. If you are in the US, a 'good' CCSID value that should solve your conversion issues, is 37.
The /390 queue manager needs to be bounced after the change (QMCCSID value in the CSQ6SYSP macro). Your MQ/390 Admin will know what to do.
Hope that helps,
Stefan
_________________
Stefan Sievert
IBM Certified * WebSphere MQ
[ This Message was edited by: StefanSievert on 2002-04-25 14:13 ] |
|
Back to top |
|
 |
richdedeyan |
Posted: Fri Apr 26, 2002 11:19 am Post subject: |
|
|
Newbie
Joined: 24 Apr 2002 Posts: 7
|
Stefan,
Thanks for pointing me in the right direction. I got in touch with the MQSeries folks, and they gave me the right CCSID and encoding values. |
|
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
|
|
|
|