Posted: Wed Apr 27, 2005 6:43 pm Post subject: Bind failed for integer column.
Hi,
We are trying to insert a record from the flat file into DB2 table using Cobol program. The bind step fails for the column ERROR_CD defined on the table as INTEGER.
EugeneE,
The ERROR_CD looks ok, check beyond that, from FUND-QTY. What is the reference for ",:DCLMFB-BALANCE-BO." this does not look ok. Why would you need the reference ? or post the complete SQL. Thanks
Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
Posted: Thu Apr 28, 2005 7:37 am Post subject:
EugeneE,
Are you sure that the column ERROR_CD defined on the table is INTEGER? Also make sure that you are referencing the right table name.
bullfighter,
Why would you want it to change a integer column to Decimal column? A comp-3 is a decimal column. A DB2 integer column is equivalent to S9(09) comp field in cobol.
Sureshkumar,
Eugene is having a problem with ERROR_CD as you can see that in error message.
Kolusu,
I still feel its the reference to "DCLMFB-BALANCE-BO.FUND-QTY " that may be the cause. Why would we build a reference if the table is not being referenced in the same sql statement. Thanks
Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
Posted: Thu Apr 28, 2005 1:27 pm Post subject:
Quote:
I still feel its the reference to "DCLMFB-BALANCE-BO.FUND-QTY " that may be the cause. Why would we build a reference if the table is not being referenced in the same sql statement.
Suresh kumar,
May be there is another table with same column name FUND-QTY which is being used in the same program. In that case he needs to reference the column with the right qualifier.
I greatly appreciate your help. Somehow the problem disappeared. In the matter of fact, it is a web Java application with the mainframe DB2 on the backend. I am a web programmer and lead this project. Therefore I do not know all the details, how my mainframe programmers finally solved this.
Again, thank you very much for your incredible help. You are doing a great job here.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum