Can we take an RPG program that reads a DB2/400 database table and without modifying its code change it to point to the “same” table in an Oracle database using JDBC?
Software/Hardware used:
ASKED:
March 4, 2010 6:10 PM
UPDATED:
November 28, 2011 9:20 AM
… its not possible, but you could come rather close to it with Open Source solution ArdGate. Using ArdGate, you could use embedded SQL in RPG to access an Oracle, or any other JDBC capable database and ArdGate could run completely on AS/400. But there are some diffrences between accessing the local database and a remote database from RPG. You would have to connect, use commitment controll and there are some limitations for remote access compared to local access and ArdGate will add some additional restrictions too. But it would be possible to access an Oracle database in a very similar way as accessing the local DB2.
Dieter Bender
… there is an Open Source alternative solution available. Using ArdGate, you could access all JDBC databases direct from COBOL or RPG applications, using embedded SQL. Installation and configuration is done in less than a half day.
Dieter Bender
Access any Database from ADABAS to XBASE with embedded SQL in RPG. http://sourceforge.net/projects/appserver4rpg/