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 » MQSeries EBCDIC

Post new topic  Reply to topic
 MQSeries EBCDIC « View previous topic :: View next topic » 
Author Message
richdedeyan
PostPosted: Thu Apr 25, 2002 11:45 am    Post subject: Reply with quote

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
View user's profile Send private message
StefanSievert
PostPosted: Thu Apr 25, 2002 1:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
richdedeyan
PostPosted: Fri Apr 26, 2002 11:19 am    Post subject: Reply with quote

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
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 » MQSeries EBCDIC
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.