Consultor Eletrônico



Kbase P79123: Unable to work with NUMERIC Field as decimal using ODBC-DB2/400
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   9/21/2004
Status: Unverified

FACT(s) (Environment):

OpenEdge 10.0A
ODBC DataServer

SYMPTOM(s):

Going to DB2/400 using the ODBC DataServer

Unable to work with NUMERIC Field

Created SQL file using the IBM's Operational Navigator which allows precision and scale to be defined and filed is defined as a NUMERIC with zero scale

When a field is defined as NUMERIC using native AS/400 SQL, you can not define precision and scale, only precision.

FIX:

Redefine the field to a different data type which has both precision and scale.