Debugging Stored Procedures under DB2 LUW

Because debugging a stored procedure by its very nature implies stopping the server and stepping through the server code, it is imperative that the programmer debugging the stored procedure code is the only person using the database server. You should therefore debug DB2 LUW stored procedures using a database on your own workstation if possible.

You can test a COBOL stored procedure without coding a client program by using:


If you don't get the expected results, you might want to debug the COBOL stored procedure. The following is required to successfully debug a stored procedure:


Tip:

If the stored procedure is not working as expected, make sure the parameters passed to the stored procedure are getting passed in the expected format by examining each parameter in the Linkage Section.