|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
ASCII to EBCDIC Conversion |
« View previous topic :: View next topic » |
Author |
Message
|
vadivel |
Posted: Sun Mar 09, 2003 9:25 pm Post subject: ASCII to EBCDIC Conversion |
|
|
 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 |
|
 |
kirani |
Posted: Sun Mar 09, 2003 9:42 pm Post subject: |
|
|
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 |
|
 |
leongor |
Posted: Mon Mar 10, 2003 12:48 am Post subject: |
|
|
 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 |
|
 |
vadivel |
Posted: Tue Mar 11, 2003 12:28 am Post subject: |
|
|
 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 |
|
 |
vadivel |
Posted: Wed Mar 12, 2003 3:16 am Post subject: |
|
|
 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 |
|
 |
vadivel |
Posted: Wed Mar 19, 2003 6:26 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|