DB2 10.5 for Linux, UNIX, and Windows

dec_to_char_fmt - Decimal to character function configuration parameter

This parameter is used to control the result of the CHAR scalar function and the CAST specification for converting decimal to character values.

Configuration type
Database
Parameter type
  • Configurable online
  • Configurable by member in a DB2® pureScale® environment

See Effects of changing the value of dec_to_char_fmt.

Default [range]
NEW [NEW, V95]

The setting of the parameter determines whether leading zeros and a trailing decimal characters are included in the result of the CHAR function. If you set the parameter to NEW, leading zeros and a trailing decimal characters are not included; if you set the parameter to V95, leading zeros and a trailing decimal characters are included.

Leading zeros and a trailing decimal characters are also included in the result of the CHAR_OLD scalar function, which has the same syntax as the CHAR function.

When upgrading, for databases created before Version 9.7 and then upgraded to Version 9.7 or higher, the parameter dec_to_char_fmt is set to V95 by default.

Effects of changing the value of dec_to_char_fmt