Ok, I'm still having problems returning cursors from db2 procedure..
For example:
I have a procedure A, that return a cursor:
CREATE PROCEDURE A ( )
DYNAMIC RESULT SETS 1
P1: BEGIN
DECLARE cursor1 CURSOR WITH RETURN TO CLIENT FOR
SELECT handle, descricao from sam_grau;
OPEN cursor1;
END P1
And I have a procedure B that must to open procedure A and read it like a cursor.
?
How to do this ?
Thanks.