Hello for everyone, I have problems reading an AS/400 file using DB2 Connect. Follow is the configuration and table specifications in order that you can understand the situation:
DB2/400 v5R4
DB2 Enterprise in Linux with DB2 Connect both 9.7 version SP 3.
AS/400 Table call CUMST, this table has about 92 columns however, into this columns have two specific columns that cause the problem: CUSILV and CUSMAM both of them are defined as NUMERIC(1,0) and NOT NULL, for some reason the CUSILV and CUSMAN has ++ as value in some records, I realize a SQL query in the AS/400 and get the following output:
SELECT CUSCUN, CUSILV, CUSMAM FROM BACHIFILES.CUMST WHERE CUSCUN = 12345
The Ouput:
CUSCUN CUSILV CUSMAN
--------------- ------------- -----------------
12345 ++ +++
When I used DB2 LUW to query the same table using DB2 Connect I receive the followin error:
SQL0304N A value cannot be assigned to a host variable because the value is
not within the range of the host variable's data type. SQLSTATE=22003
My Question is: exist some SQL command in DB2 LUW in order to determine wich records in the AS/400 has the same problems??? I'm try using a COALESCE but the field is not null and has a value.
Please your help.
Best Regards
Gerardo B.