dbTalk Databases Forums  

Stored Procedures: RESULT SET.

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Stored Procedures: RESULT SET. in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
db2sysc@yahoo.com
 
Posts: n/a

Default Stored Procedures: RESULT SET. - 05-02-2005 , 07:27 AM






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?


Reply With Quote
  #2  
Old   
Serge Rielau
 
Posts: n/a

Default Re: Stored Procedures: RESULT SET. - 05-02-2005 , 07:44 AM






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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.