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 IndexGeneral IBM MQ SupportCharacter Code Conversion Error

Post new topicReply to topic
Character Code Conversion Error View previous topic :: View next topic
Author Message
Abishaik
PostPosted: Mon Apr 29, 2002 10:35 pm Post subject: Reply with quote

Newbie

Joined: 22 Apr 2002
Posts: 4
Location: Japan

Hi,

I'm trying to receive a string with double byte characters from a Mainframe (EBCDIC). We are using CodedCharSetId = 5026 on the mainframe end. And at the receving end (Windows NT system) MQGMO_CONVERT to do the ASCII/EBCDIC conversion and setting the MQMD CodedCharSetId to 5026. The conversion is not happening. Infact the normal single byte characters (Which was working fine with the MQGMO convert) goes for a toss after I made the above change. Only, characters in their Hex values was received properly at the client end.

The trace of the received message looks something like this:

MQOPEN - 'Test'
StrucId : 'MD ' Version : 2
Report : 0 MsgType : 8
Expiry : -1 Feedback : 0
Encoding : 785 CodedCharSetId : 5026
Format : 'MQSTR '

**** Message ****

length - 75 bytes

00000000: F1F2 F3F4 F540 7B5B 6C50 C1C2 C3C4 C531 'ñòóôõ@{[lPÁÂÃÄÅ1'
00000010: 3233 3435 2023 2425 2641 4243 4445 F000 '2345 #$%&ABCDEð.'
00000020: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000030: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000040: 0000 0000 0000 0000 0000 00 '........... '

Can you please let me know, what I'm missing or what I need to do to get double byte characters properly.



_________________
Thanks,
Abishaik.
Back to top
View user's profile Send private message Send e-mail
BobLundeen
PostPosted: Tue Apr 30, 2002 8:12 am Post subject: Reply with quote

Newbie

Joined: 29 Apr 2002
Posts: 2

You mentioned "And at the receving end (Windows NT system) MQGMO_CONVERT to do the ASCII/EBCDIC conversion and setting the MQMD CodedCharSetId to 5026. " If the MQMD CCSID is being set to 5026 and the message is already 5026, then no conversion is needed. I may have misunderstood your above statement, but if not, try using the value for "MQCCSI_Q_MGR" (low values) instead of 5026 in the CCSID field of the MQMD before the MQGET. This should cause the Conversion to take place.

The following is from the Application Reference:

If the MQGMO_CONVERT option is specified on the MQGET call, this field is an input/output field. The value specified by the application is the coded character-set identifier to which the message data should be converted if necessary. If conversion is successful or unnecessary, the value is unchanged (except that the value MQCCSI_Q_MGR or MQCCSI_INHERIT is converted to the actual value). If conversion is unsuccessful, the value after the MQGET call represents the coded character-set identifier of the unconverted message that is returned to the application.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexGeneral IBM MQ SupportCharacter Code Conversion Error
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.