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 » Esql Error: Overflow calculating '%1 + or - %2'

Post new topic  Reply to topic
 Esql Error: Overflow calculating '%1 + or - %2' « View previous topic :: View next topic » 
Author Message
ryzor
PostPosted: Fri Feb 27, 2004 2:55 am    Post subject: Esql Error: Overflow calculating '%1 + or - %2' Reply with quote

Apprentice

Joined: 31 Dec 2001
Posts: 42

Hi,

I'm trying to remove vat from a vat inclusive variable
i.e
DECLARE amt decimal;
DECLARE amtVat1 decimal;
DECLARE amtVat2 decimal;

SET amtVat2 = amt - ceil(((amt * 100) / 114));

i get the following error: ImbDecimal addSubtract(const ImbDecimal &left, const ImbDecimal &right, bool adding)
Overflow calculating '%1 + or - %2' --- i tried using float datatypes and got the same error.

is there an easier way that i can remove vat from a vat inclusive variable without geting the over flow error? please help.
Back to top
View user's profile Send private message Send e-mail
kirani
PostPosted: Fri Feb 27, 2004 11:21 am    Post subject: Reply with quote

Jedi Knight

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

What is the value of amt?
_________________
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
ryzor
PostPosted: Sun Feb 29, 2004 8:30 am    Post subject: Reply with quote

Apprentice

Joined: 31 Dec 2001
Posts: 42

the value of amt is 48.82
Back to top
View user's profile Send private message Send e-mail
EddieA
PostPosted: Wed Mar 03, 2004 8:49 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Found this in the CSD06 ReadMe:
Quote:
IY46966 - ROUND FUNCTION FAILS WITH AN ARITHMETIC OVERFLOW ERROR

Might be the problem.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
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 » Esql Error: Overflow calculating '%1 + or - %2'
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.