It is possible to execute DB2® UDB stored procedures with output parameters and a result set.
OPEN curs USING n IN, d OUT, c INOUT FETCH curs INTO rec.*