If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 Decimal Separator

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-04-05, 10:44
gmesturini gmesturini is offline
Registered User
 
Join Date: Nov 2005
Posts: 21
DB2 Decimal Separator

DB2 UDB 8.2 on WinXP - please, i'm going out of my head... i'm trying to change the decimal separator from period to comma... i found this http://publib.boulder.ibm.com/infoce...adpfnsconx.htm but i don't know if it's what i need and i don't understand the usage... i don't understand what SQLHENV is and what value should i use to make the command work. should someone help me by telling me what command should i write in the CLP?... i've tried

SQLRETURN SQLSetEnvAttr (,
SQL_ATTR_DECIMAL_SEP,
SQL_SEP_COMMA,
);

but i miss the meaning of parameters "henv" and "StringLength"... i read that StringLength might be omissed for numeric attributes. is that right?

how the final command i have to type would be written?

my goal is that DECIMAL('0123,45') works... but now i have to use DECIMAL('0123.45')

Last edited by gmesturini; 11-04-05 at 10:52.
Reply With Quote
  #2 (permalink)  
Old 11-04-05, 11:45
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by gmesturini
DB2 UDB 8.2 on WinXP
In that case I don't believe the iSeries manuals that you're reading are going to help.

If you read the LUW manuals instead you'd discover that you could specify the separator when calling DECIMAL:
Code:
DECIMAL('0123,45',5,2,',')

Last edited by n_i; 11-04-05 at 14:08.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On