A stored procedure must declare each parameter passed to it. In addition, the DATA TYPE declared in the declaration must be valid for the data source being used and must use a compatible host variable data type when calling the stored procedure. For more information on data types, see the chapter SQL Data Types earlier in this book.
For example:
CREATE PROCEDURE GETEMPSVR (IN EMPNO CHAR(6), INOUT SQLCD INT , OUT FIRSTNME CHAR(12), OUT LASTNAME CHAR(12), OUT HIREDATE CHAR(10), OUT SALARY DEC(9,2) ) LANGUAGE COBOL EXTERNAL NAME 'GETEMPSVR!GETEMPSVR' PARAMETER STYLE DB2SQL;