A stored procedure can be called from many different codes. They can be executed from C/C++, JDBC, SQLJ, PHP, .NET, REXX, etc. In the DB2 Information center are multiple example how you have to write your code: