db2sysc (AT) yahoo (DOT) com wrote:
Quote:
All:
I am writing a MAIN CALLING PROCEDURE. This call lot of procedures.
Some of the CALLED PROCEDURES end with an OPEN C1 (cursor). How to I
read this open cursor in my main procedure?? In java or C we can
process this return cursor. But I am not sure if we can process the
cursor in the MAIN CALLING PROCEDURE.
Any help?
Take a peek at teh WITH RETURN option for cursors and the
|
ASSOCIATE and ALLOCATE LOCATOR statements that let you "catch" a resultset.
Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab