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 » Problems with CAST function when decimal point is COMMA

Post new topic  Reply to topic
 Problems with CAST function when decimal point is COMMA « View previous topic :: View next topic » 
Author Message
EVILLAREJO
PostPosted: Fri Oct 25, 2002 4:04 am    Post subject: Problems with CAST function when decimal point is COMMA Reply with quote

Newbie

Joined: 21 Oct 2002
Posts: 5

Hi,
I write you from Spain. Usually in Spain we use the COMMA as decimal point. I have this problem:
I receive in a XML file a tag similar to this:

<TotalPurchaseOrder>12345,97</TotalPurchaseOrder>

In a compute node, I'm using the CAST function to try to convert this string to DECIMAL, in order to know the number of scale digits. MQSI doesn`t work.

But, if I replace manually in the XML file and I change "12345,97" and I write "12345.97" MQSI works fine.

Do you know how to solve this problem? I need to work with COMMA as decimal point.

Thank a lot.
Back to top
View user's profile Send private message
cute_pav
PostPosted: Fri Oct 25, 2002 4:55 am    Post subject: Reply with quote

Acolyte

Joined: 04 Jan 2002
Posts: 65
Location: usa

Use 'overlay' fuction through ESQL to replace , to . in compute node fo the specific fields.

pavan
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Problems with CAST function when decimal point is COMMA
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.