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 » decimal separator in db2

Post new topic  Reply to topic
 decimal separator in db2 « View previous topic :: View next topic » 
Author Message
m.schneider
PostPosted: Tue Aug 07, 2007 1:05 am    Post subject: decimal separator in db2 Reply with quote

Centurion

Joined: 10 Apr 2007
Posts: 132
Location: Germany

Hello,

I'm facing the problem that my db2 uses a ',' as a decimal separator instead of a '.'. This causes the following error in the message broker:

( BK_TSTRADE1.EXEGRP1 ) Fehler bei der Konvertierung der Zeichenfolge ''0,050000'' in einen Dezimalwert. Status = ''-1'' ''S22018'' '0' ''

Es wurde versucht, eine Zeichenfolge in einen Dezimalwert zu konvertieren, die Zeichenfolge hatte jedoch das falsche Format. Die Zeichenfolge muss das Format [<Vorzeichen>]<Ziffern>[.<Ziffern>][[<Vorzeichen>]E<Ziffern>] haben. Hierbei kann für <Vorzeichen> '+' oder '-' angegeben werden, und die <Ziffern> können eine oder mehrere Dezimalziffern (0-9) sein. Die Groß-/Kleinschreibung für E spielt keine Rolle. Dieser Zeichenfolge kann können beliebig viele Leerzeichen voran- oder nachgestellt sein. Innerhalb des angegebenen Formats dürfen jedoch keine Leerzeichen stehen. Die maximale Genauigkeit besteht aus 24 Ziffern, und der höchste Exponent darf 999.999.999 sein.

Meaning there is a conversion problem. How can I configure DB2 to use englisch settings? I already tried setting the windows regional settings to us. I also tried setting the regional settings of my db during creation to us but DB2 still uses the wrong decimal separator.

Please provide help.

Thanks
Back to top
View user's profile Send private message
Yaroslav
PostPosted: Wed Oct 22, 2008 10:39 pm    Post subject: Reply with quote

Novice

Joined: 28 Sep 2006
Posts: 12
Location: Russia

Hello, m.schneider!
I think this answer is out of date for you, but it must be helpful for others.
I have the same problem in my environment:
OS - Windows 2003
WMB 6.1
IBM DB2 v8.1.15
The problem with decimal separator was solved by adding workaround in file db2cli.ini

[YOUDB]
PATCH2=15
DBALIAS=YOUDB
_________________
IBM Certified Solution Designer WebSphere MQ V6.0
IBM Certified Solution Developer WebSphere Message Broker V6.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 » decimal separator in db2
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.