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 IT32568 Status: Closed

FIXED FORMAT EXTERNAL TABLES: SQL20570N ERROR WHEN DECIMAL DATATYPE FIELD
LENGTH IS SAME AS THE COLUMN LENGTH

product:
DB2 FOR LUW / DB2FORLUW / B50 - DB2
Problem description:
Accessing an external table in fixed format may incorrectly
return SQL20570N if a DECIMAL data type field length is the same
as the column length.

Here is an example of the issue:

$ db2 "select * from external '/files/ext_txt2'(c1 decimal(8,4))
using (format fixed layout(c1 decimal bytes 8))"

C1
----------
SQL20570N  The statement failed because the number of rejected
rows exceeds
the limit set in the MaxErrors option value. Log file name:
"GRAPE120.DB2INST1.SYSTET62030.ext_txt2.00000007.0000021.log".
SQLSTATE=22551

$ db2 "select * from external '/files/ext_txt2'(c1 decimal(7,4))
using (format fixed layout(c1 decimal bytes 8))"

C1
---------
SQL20570N  The statement failed because the number of rejected
rows exceeds
the limit set in the MaxErrors option value. Log file name:
"GRAPE120.DB2INST1.SYSTET45340.ext_txt2.00000007.0000025.log".
SQLSTATE=22551

File content:
cat ext_txt2
456.1234

log file:

bad #: input row #(byte offset to last char examined) [field #,
declaration] diagnostic, "text consumed"[last char examined]
----------------------------------------------------------------
-------------
1: 1(8)[1, NUMERIC(8,4)] missing field - fillRecord not enabled,
"456.1234"[0x0a]

though this works:

$ db2 "select * from external '/files/ext_txt2'(c1 decimal(7,3))
using (format fixed layout(c1 decimal bytes 8))"

C1
---------
  456.123

  1 record(s) selected.
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* Using fixed format external tables                           *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* upgrade to in version 11.5.4.0                               *
****************************************************************
Local Fix:
Solution
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
16.04.2020
30.06.2020
30.06.2020
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)