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 » WebSphere Message Broker (ACE) Support » EBCDIC to ASCII data conversion using WMB msg flow

Post new topic  Reply to topic
 EBCDIC to ASCII data conversion using WMB msg flow « View previous topic :: View next topic » 
Author Message
eaistudent
PostPosted: Fri May 30, 2014 7:19 am    Post subject: EBCDIC to ASCII data conversion using WMB msg flow Reply with quote

Newbie

Joined: 30 May 2014
Posts: 1

Hi,

Im receiving an EBCDIC file from a legacy system with Special characters. The input MRM msg being read into MB has a CCSID of 500.

We are trying to parse the MRM into an xml msg as shown in the code snippet below -

SET target.MQMD.CodedCharSetId = 819;
SET target.MQMD.Encoding = 546;
SET target.XMLNSC.Company = source.MRM.DATA.NAME;
SET target.XMLNSC.Department = source.MRM.DATA.DEPARTMENT;

But the input data is getting corrupted when its being parsed by MB. I have verified the below using the user trace.

Input to MB was ‘F PÈRRAULT Z’ –
MB read it as 'F PþRRAULT Z'

Input to MB was ‘ATTORÑEY AT LAW Z’ –
MB read it as - 'ATTORµEY AT LAW Z'

I have tried casting the input data as a character with & without the CCSID 500 just to check if the ebcdic data is getting parsed unchanged. But the issue is that the input data is getting changed.

How can this be avoided? (I dont want to change the CCSID of the Queue Manager.)
Back to top
View user's profile Send private message
ganesh
PostPosted: Fri May 30, 2014 12:02 pm    Post subject: Reply with quote

Master

Joined: 18 Jul 2010
Posts: 294

The CCSID is unable to handle the characters.
Back to top
View user's profile Send private message
zpat
PostPosted: Fri May 30, 2014 1:31 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Make sure the MQinput node has convert option unchecked.

Make sure the input message has valid characters for CCSID 500.

WMB will convert internally to CCSID 1200.
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat May 31, 2014 3:00 am    Post subject: Reply with quote

Grand High Poobah

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

Change your target CCSID to a value that can handle all the special characters (like UTF-8 or 1208 ).

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Mon Jun 02, 2014 6:29 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
But the input data is getting corrupted when its being parsed by MB
That is extremely unlikely. As others have said, check that the CCSID on the input message correctly describes the content of the input message. Then check that the contents of the message tree look corrrect ( use a Trace node with pattern ${Root} to do this ). Finally, carefully select an output CCSID that is able to represent all of the characters in the message tree. UTF-8 or UTF-16 are both good choices because they can represent all Unicode characters.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » EBCDIC to ASCII data conversion using WMB msg flow
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.