Actually the System i DB2 DBMS is an embedded part of the operating system, The old version of M3 (formerly called Movex) used RPG to directly access the database. The current Java version used JDBC.
In your case I'd suggest that you abandon ODBC and use one of the other data access providers that are available:
http://www-03.ibm.com/sys...indows/database.html
Good luck!