DecimalResults

Specifies the Open Client and Open Server datatype to which a DB2 access service converts DB2 DECIMAL results.

Syntax

DecimalResults=[autoconvert | int | float | real | char | money | money4 | bcd]

Default

autoconvert

Values

autoconvert means the DB2 access service chooses the appropriate datatype to return according to the following conversion scheme:

int returns CS_INT, a 4-byte integer type.

float returns CS_FLOAT, an 8-byte float type.

real returns CS_REAL, a 4-byte float type.

char returns CS_CHAR, a character type.

money returns CS_MONEY, an 8-byte money type.

money4 returns CS_MONEY4, a 4-byte money type.

bcd is valid only if you have columns described in BCD format.

The DB2 access service returns BCD columns as CS_BINARY or CS_VARBINARY with the following format:

Comments

If the ClientDecimalSeparator property value is a character other than a period (.), set the DecimalResults property value to char to enable the DB2 access service to return decimal results with the correct client decimal delimiter.