What is the syntax to call a stored procedure that returns a result set?
using procob for oracle 11g
tried this:
EXEC SQL
DECLARE C1_CSR CURSOR FOR
CALL Package.procedure(field1, field2)
END-EXEC.
----------------
EXEC SQL
OPEN C1_CSR
END-EXEC.
---------
EXEC SQL
FETCH C1_CSR INTO WS-RETURN-VALUE
END-EXEC.