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 » General IBM MQ Support » MQ Series and EBCDIC to ASCII Conversion

Post new topic  Reply to topic
 MQ Series and EBCDIC to ASCII Conversion « View previous topic :: View next topic » 
Author Message
gazza_az
PostPosted: Mon Dec 13, 2010 3:35 pm    Post subject: MQ Series and EBCDIC to ASCII Conversion Reply with quote

Newbie

Joined: 13 Dec 2010
Posts: 1

We have a problem.
We have an application on the Mainframe that allows textual descriptions. We have a DB2 trigger that on change sends a message via MQ Series to a client server application. We have a web service that is invoked via a Tibco EMS process - from the Message on the MQ Series Queue.

We have discovered that when we recieve text containing '[' or ']' values - the fields following are displaced by a byte, and we actually see an invalid date error. We have removed the bad characters from the string and everything is fine.

My Question is this - are there any other characters in EBCDIC that will cause a similar problem. We may have to put a text scrubbing algorithm to replace the square bracket with rounded parenthesis. And I have been researching EBCDIC to ASCII conversion - but cannot find a definitive text that outlines problems and characters to avoid.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Dec 13, 2010 8:20 pm    Post subject: Reply with quote

Grand High Poobah

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

I suspect very much that you are converting before you are parsing.
And possibly converting to UTF-8.
This is problematic because you are counting in bytes for your parsing instead of counting in characters. Thus any character that converts from a single byte (EBCDIC) into multiple bytes (UTF-8 ) will cause you problems.

This is normal and expected behavior. Your suggested solution is looking at it the wrong way. Transform the UTF-8 stream into a String of characters and then parse using the # of characters in the field...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » MQ Series and EBCDIC to ASCII 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.