Example

The following SET RESULT SETS statement specifies cursor X as the result set that will be returned when the procedure is called. For more information and complete examples showing the use of result sets from ODBC clients, see the iSeries Access Family category in the iSeries Information Center.

    EXEC SQL SET RESULT SETS CURSOR X;