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:
- Calling stored procedures in JDBC applications: DB2 9.7 DB2 10.1 DB2 10.5
- Calling stored procedures in an SQLJ application: DB2 9.7 DB2 10.1 DB2 10.5
- Calling stored procedures in C and C++ embedded SQL applications: DB2 9.7 DB2 10.1 DB2 10.5
- Calling stored procedures from CLI applications: DB2 9.7 DB2 10.1 DB2 10.5
- Calling stored procedures from an application using the IBM Data Server Provider for .NET: DB2 9.7 DB2 10.1 DB2 10.5
- Calling stored procedures in PHP (ibm_db2): DB2 9.7 DB2 10.1 DB2 10.5
- Calling stored procedures in PHP (PDO): DB2 9.7 DB2 10.1 DB2 10.5
- Calling stored procedures in Python (ibm_db2): DB2 9.7 DB2 10.1 DB2 10.5
- Calling stored procedures from REXX: DB2 9.7 DB2 10.1 DB2 10.5