IBM Support

IC80664: VARCHR_FORMAT OR TO_CHAR FUNCTION RETURNS SQL20477N IF DECIMAL-F LOATING-POINT-EXPRESSION IS LESS THAN 1E-6 IN DECIMAL NOTATION

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • VARCHAR_FORMAT or TO_CHAR function returns SQL20477N if
    decimal-floating-point-expression is less than 1E-6 in decimal
    notation.
    
    The following statement illustrates the error.
    
    db2 connect to <dbname>
    db2 "values to_char(0.0000001, 90.0000000)"
    
    1
    ---------------------------------------------------
    SQL20477N  The "VARCHAR_FORMAT" function is not able to use
    format string "90.0000000" to interpret the argument "1E-7".
    SQLSTATE=22018
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Users who use VARCHR_FORMAT or TO_CHAR functions.            *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * See Error Description                                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Please upgrade to V9.7 FixPack 6 or later.                   *
    ****************************************************************
    

Problem conclusion

  • This problem is first fixed in DB2 V9.7 FixPack 6.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC80664

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-01-04

  • Closed date

    2012-06-13

  • Last modified date

    2012-06-13

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    IC84253

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 PSN

       UP



Document information

More support for: DB2 for Linux, UNIX and Windows

Software version: 9.7

Reference #: IC80664

Modified date: 13 June 2012