I am attempting to convert a system from using DB2 to allow ODBC access so that a customer can have an alternative to DB2.
So far I have discovered that I need to remove 'IN SHARE MODE' from the CONNECT statements. Not sure what, if any effect this may have just yet.
My next problem is that Some items seem to be held in the database as a char(x) character field but they are read into a smaller PIC X(y) where y is less than x. Under DB2 this appears to be acceptable and no error is returned. Under ODBC (linking to the same DB2 database) I am receiving a Sql Error of 1. This is a warning and using Netexpress I have stepped into the code and found the issue.
Unfortunately, the many different programs have the following line following a SQL statement:
IF SQLCODE = 0
PERFORM success-oper
So, my question is, am I going to have to amend all of the programs (no big deal to be honest as we have utilities to do this) or is there some kind of option to ignore these errors?
Many thanks
Ian