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 » WMB6103 getting rid of £ symbol

Post new topic  Reply to topic
 WMB6103 getting rid of £ symbol « View previous topic :: View next topic » 
Author Message
williad
PostPosted: Wed Dec 15, 2010 6:01 am    Post subject: WMB6103 getting rid of £ symbol Reply with quote

Apprentice

Joined: 08 Sep 2005
Posts: 40
Location: London

Hi

Can some one please help me or point me in the right direction in regards to the following:

I have a source file that is mapped as a CSV file in my message set.
one of the fields contains for example "-£292,929.00"
Is it possible to read the field in the message flow without the £ symbol. I thought there was a way in the Message Set definnition to say disregard the £ symbol, but i cant find it.

what i am doing (which is possibly wrong) is to substring FROM position 3 of the field to get to the number portion of the field to cast it as a decimal

Any help would be much appreciated
Thanks in advance
Back to top
View user's profile Send private message
artykito
PostPosted: Wed Dec 15, 2010 6:15 am    Post subject: Reply with quote

Apprentice

Joined: 24 Jun 2010
Posts: 33

I don't know how to delete some characters in the message set configuration, but you could use the function REPLACE better than a SUBSTRING to replace the £ symbol to NULL or blank.
Back to top
View user's profile Send private message
zpat
PostPosted: Wed Dec 15, 2010 7:30 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

or change it to another zero.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Dec 15, 2010 7:48 am    Post subject: Re: WMB6103 getting rid of £ symbol Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

williad wrote:
what i am doing (which is possibly wrong) is to substring FROM position 3 of the field to get to the number portion of the field to cast it as a decimal


Certainly be a bit dubious if the number's ever positive and doesn't have a leading +...
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Dec 15, 2010 12:27 pm    Post subject: Reply with quote

Grand High Poobah

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

how about using the format clause in the cast using a £ symbol?
_________________
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 » WebSphere Message Broker (ACE) Support » WMB6103 getting rid of £ symbol
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.