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 » ASCII to EBCDIC Conversion

Post new topic  Reply to topic
 ASCII to EBCDIC Conversion « View previous topic :: View next topic » 
Author Message
vadivel
PostPosted: Sun Mar 09, 2003 9:25 pm    Post subject: ASCII to EBCDIC Conversion Reply with quote

Voyager

Joined: 05 Aug 2002
Posts: 79
Location: US

Hi,
I have the old problem of Ascii to ebcdic conversion.
I'm sending data with japanese characters (katakana values ) from solaris to mainframe. My Queue managers CCSID - 819 and I'm setting the message format to STRING and the convert option in our sender channel is set to NO. The data reaches the mainframe, but they say that they are not able to convert the data to EBCDIC. What could be the problem.
Can anyone give me the code in Cobol to use convert option in MQ.
Thanks & Regards
Vels
Back to top
View user's profile Send private message Yahoo Messenger
kirani
PostPosted: Sun Mar 09, 2003 9:42 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Vels,
Are you sending any binary data in your message?
For converting ASCII STRING data into EBCDIC format you should specify MQGMO_COVERT option on MQGET call in your COBOL program.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
leongor
PostPosted: Mon Mar 10, 2003 12:48 am    Post subject: Reply with quote

Master

Joined: 13 May 2002
Posts: 264
Location: Israel

If you send katakana then why you send it with CCSID 819 ? What CCSID is on Mainframe ?
It supposed to be one of these :
Quote:

Japanese Katakana SBCS

Platform Native CCSIDs
OS/400, z/OS 290
OS/2, HP-UX 897
AIX 932, 5050, 33722
Windows 932, 943
Solaris 943, 5050
Compaq,DEC-OVMS 943, 954
NSK 932, 954
Tru64 943, 954, 33722

You don't have to change Qmgr's CCSID, you can do it with MQPUT,MQGET.
_________________
Regards.
Leonid.

IBM Certified MQSeries Specialist.
Back to top
View user's profile Send private message
vadivel
PostPosted: Tue Mar 11, 2003 12:28 am    Post subject: Reply with quote

Voyager

Joined: 05 Aug 2002
Posts: 79
Location: US

Hi,
If I set the characterSet to 5050, I get a UnsupportedEncodingException and If set the characterSet to 943 and put the message in the local queue for testing, and on browsing the queue the katakana characters are found to be junk. But if I leave the characterSet to take the solaris default i.e 819 all the characters are intact, but Mainframe is not able to convert the values to ebcdic.
Please send me sample programs if you have any.
Thanks & Regards
Back to top
View user's profile Send private message Yahoo Messenger
vadivel
PostPosted: Wed Mar 12, 2003 3:16 am    Post subject: Reply with quote

Voyager

Joined: 05 Aug 2002
Posts: 79
Location: US

Hi,
The problem seems to be solved, but for one character!!
All the katakana characters are getting transferred expect for the Yen symbol. I set characterSet to 943 and did no conversion while reading the SJIS data from database. All characters are transferred to mainframe and they are able to read them. But the Yen symbol is not getting transferred.
Any ideas!!!
Cheers,
Vels
Back to top
View user's profile Send private message Yahoo Messenger
vadivel
PostPosted: Wed Mar 19, 2003 6:26 pm    Post subject: Reply with quote

Voyager

Joined: 05 Aug 2002
Posts: 79
Location: US

Hi,
I solved this problem by replacing the Yen symbol with the unicode chararcter '\u00a5'!!!!!!!!
Cheers,
Vels
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » ASCII to EBCDIC Conversion
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.