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 » Special characters

Post new topic  Reply to topic
 Special characters « View previous topic :: View next topic » 
Author Message
Lisa
PostPosted: Thu Sep 25, 2003 6:46 am    Post subject: Special characters Reply with quote

Master

Joined: 07 Jun 2002
Posts: 287
Location: NJ

All,
What's the best way to filter out special characters that are incompatible with international telex in SWIFT messages?

The characters are & * ; <> " !. and so on. The characters can be inbedded in free form text up to 50 bytes long.


Lisa
Back to top
View user's profile Send private message Send e-mail
kirani
PostPosted: Thu Sep 25, 2003 4:44 pm    Post subject: Reply with quote

Jedi Knight

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

Do you want to replace these characters with SPACE?
I guess, you have to write some kind of function in ESQL to loop thru complete char string and search for special characters one by one. If no special char is found then you would append that char to new string, which will be returned to the caller at the end of the function. You can use a combination of POSITION and OVERLAY functions within your code.

In WBIMB they have REPLACE Function, which can help.
_________________
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
fitzcaraldo
PostPosted: Thu Sep 25, 2003 6:52 pm    Post subject: Reply with quote

Voyager

Joined: 05 May 2003
Posts: 98

FYI - this works:

Code:

-- build the incoming message into a blob string
declare xmlBodyRef reference to InputRoot.XML;
declare xmlBody blob cast('' as blob);

move xmlBodyRef firstchild;
while lastmove(xmlBodyRef) = true do
  set xmlBody = xmlBody || BITSTREAM(xmlBodyRef);
  move xmlBodyRef nextsibling;
end while;

-- xmlBody should now hold all elements of the message
-- copy it to the messageData field
set OutputRoot.XML.MyMessage.messageData.(XML.Content) = cast (xmlBody 
      as CHARACTER CCSID InputRoot.MQMD.CodedCharSetId ENCODING InputRoot.MQMD.Encoding);
Back to top
View user's profile Send private message
fitzcaraldo
PostPosted: Thu Sep 25, 2003 6:56 pm    Post subject: Reply with quote

Voyager

Joined: 05 May 2003
Posts: 98

oops - sorry - posted to wrong topic!
Back to top
View user's profile Send private message
Lisa
PostPosted: Fri Sep 26, 2003 9:10 am    Post subject: Special Char Reply with quote

Master

Joined: 07 Jun 2002
Posts: 287
Location: NJ

Thanks Kirani,
I started coding the routine yesterday and I am using the Position and Overlay functions as mentioned in your posting.

Lisa
Back to top
View user's profile Send private message Send e-mail
pankajg
PostPosted: Wed Oct 22, 2003 8:35 am    Post subject: Reply with quote

Acolyte

Joined: 11 Oct 2001
Posts: 53

Lisa - If it is not a problem , Can you share the Routine , you have coded.
I may reuse it to replace NULL / "Registered Trademark" char with SPACE.
_________________
Regards
Pankaj
Back to top
View user's profile Send private message Send e-mail
Lisa
PostPosted: Wed Oct 22, 2003 1:18 pm    Post subject: Spec. Reply with quote

Master

Joined: 07 Jun 2002
Posts: 287
Location: NJ

pankajg,
Check your email.

Regards, Lisa
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 » WebSphere Message Broker (ACE) Support » Special characters
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.