Link to home
Start Free TrialLog in
Avatar of makkena_v
makkena_v

asked on

Converting COBOL Program to DB2 Stored Procedures

Hi,
We have many COBOL programs on IBM mainframe, we are planning to convert them to DB2 stored procedure. is there any tools to conver this. Is there any performance and easy mainitenance benifit?.
Avatar of ClementeBiondo
ClementeBiondo

no, there isn't any tool. Also in DB2 a stored procedure
is a trick, when you write one it is converted in C source and then compiled (take a look at /home/db2inst1/sqllib/function/routine/sqlproc to see the c source).
ByeBye.
no, there isn't any tool. Also in DB2 a stored procedure
is a trick, when you write one it is converted in C source and then compiled (take a look at /home/db2inst1/sqllib/function/routine/sqlproc to see the c source).
ByeBye.
Avatar of Shalom Carmel
Hi makkena_v ,

Yes, there is a way to use your legacy system.
IBM UDB supports External Stored Procedures, which are SQL wrappers around existing programs.

http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/dsnsq0g3/CCONTENTS

look for the " CREATE PROCEDURE (external) " definition.

You will not see a performance penalty, and the benefits are obvious - you wrap your business logic and use it either internally or expose it thru the stored procedure to external applications via ODBC/JDBC.


Cheers,
ShalomC
ASKER CERTIFIED SOLUTION
Avatar of fierrosc
fierrosc

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial