The documentation of the CALL command,
states that "if the calling program is written using CLI, JDBC, or SQLJ, or the caller is an SQL procedure, result sets can be returned directly to the caller. The procedure indicates that a result set is to be returned by declaring a cursor on that result set, opening a cursor on the result set, and leaving the cursor open when exiting the procedure."
My question is : how can I know the name of the cursor if I did not write the procedure ?
For example, the built-in REORGCHK_TB_STATS and REORGCHK_IX_STATS return result sets : how can I guess the name of the cursor to OPEN from a calling SQL procedure in order to exploit that result set ?
Thanks for your help!
Pinned topic Cursor names for stored procedures exposing result sets
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-09-07T06:47:53Z at 2012-09-07T06:47:53Z by SystemAdmin
Re: Cursor names for stored procedures exposing result sets2012-09-07T06:47:53ZThis is the accepted answer. This is the accepted answer.Hello,
The answer to my question is here :