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 » Converting TextMessages from UTF-8 to EBCDIC

Post new topic  Reply to topic
 Converting TextMessages from UTF-8 to EBCDIC « View previous topic :: View next topic » 
Author Message
joerg.sailer
PostPosted: Mon Aug 09, 2004 1:14 am    Post subject: Converting TextMessages from UTF-8 to EBCDIC Reply with quote

Newbie

Joined: 09 Aug 2004
Posts: 4
Location: Germany

Hello,
I implemented a small Java-program based on the ASF-Samples of IBM and it works fine with sender and receiver on windows and/or unix-systems. If the receiver is on the Mainframe the messagebody does not get converted to EBCDIC. I tried a lot, but I did not get a solution how to set the type of the destination object, so that it will be correctly transformed.

Hope someone can help

Joerg
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Aug 09, 2004 5:30 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Your mainframe program is doing the wrong thing. Your java program is likely correct.

Your mainframe program needs to specify the CONVERT option to the MQGET.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Aug 09, 2004 2:17 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Jeff is quite correct.

Now if you have too big a discrepancy between your MQ versions and cannot get the mainframe's get with convert option to work right ..., we used some trick using JMS.

In the JNDI settings for the queue to the MF specify ccsid = 500. This way the Mainframe did not have to translate.

You could as well alternatively have the sender channel translate.

Enjoy
Back to top
View user's profile Send private message Send e-mail
joerg.sailer
PostPosted: Wed Aug 11, 2004 11:18 pm    Post subject: the solution Reply with quote

Newbie

Joined: 09 Aug 2004
Posts: 4
Location: Germany

Hi,
I found one possible solution, this is as follows:

mark the sending queue as non JMS-Queue with:
((MQQueue)mqq).setTargetClient(JMSC.MQJMS_CLIENT_NONJMS_MQ);

and on the TextMessage set the JMS-Properties:
mvsProperties.put("JMS_IBM_Format","MQSTR");
mvsProperties.put("JMS_IBM_Character_Set","1141"); // DE with €

these properties override the MQ-header data

Thanks to all and GOOGLE

Joerg
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Aug 12, 2004 8:50 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

You could probably have gotten away with using a TextMessage and having the MQSTR format supplied for you.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Converting TextMessages from UTF-8 to 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.