home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IC73585 Status: Closed

DECFLOAT_FORMAT AND VARCHAR_FORMAT MAY FAIL WHEN LEADING BLANKS IN
ARGUMENTS ARE PRESENT.

product:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problem description:
DECFLOAT_FORMAT and VARCHAR_FORMAT functions with a numeric 
first 
argument may fail or return unexpected results if there are 
leading 
blanks in the input arguments. 
 
Sample scenarios where wrong behavior may be encountered : 
 
DECFLOAT_FORMAT with format string having more than 5 leading 
blanks returns SQL20476N instead of the value. 
 
VARCHAR_FORMAT with format string having more than 5 leading 
blanks returns SQL20476N  instead of the value 
 
VARCHAR_FORMAT with all blanks  in the format-string may return 
unexpected result instead of expected SQL20476N 
 
DECFLOAT_FORMAT with more than 4 leading blanks in input string 
returns SQL20477N instead of the value.
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* Users of VARCHAR and DECFLOAT_FORMAT functions               * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* INCORRECT HANDLING OF LEADING BLANKS IN ARGUMENTS OF         * 
* DECFLOAT_FORMAT AND VARCHAR_FORMAT FOR DECFLOAT TO VARCHAR   * 
* SCENARIO                                                     * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Install 97FP4 or later which contain the fix, or eliminate   * 
* leading blanks from input arguments to VARCHAR_FORMAT and    * 
* DECFLOAT_FORMAT functions                                    * 
****************************************************************
Local Fix:
Strip leading blanks from input arguments before passing them in 
to DECFLOAT and VARCHAR_FORMAT functions.
available fix packs:
DB2 Version 9.7 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Solution
Install 97FP4 or later which contain the fix, or eliminate 
leading blanks from input arguments to VARCHAR_FORMAT and 
DECFLOAT_FORMAT functions
Workaround
not known / see Local fix
BUG-Tracking
forerunner  : APAR is sysrouted TO one or more of the following: IC73587 
follow-up : 
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
29.12.2010
28.04.2011
28.04.2011
Problem solved at the following versions (IBM BugInfos)
9.7.FP4
Problem solved according to the fixlist(s) of the following version(s)
9.7.0.4 FixList