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!
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
2 replies Latest Post - 2012-09-07T06:47:53Z by SystemAdmin
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:53Z in response to SystemAdminHello,
The answer to my question is here :