The iSeries™ DRDA® server supports the return of one or more result sets from a stored procedure.
Result sets can be generated in the stored procedure by opening one or more SQL cursors associated with SQL SELECT statements. In addition, a maximum of one array result set can also be returned. Before V5R3, only one instance of a query opened in a stored procedure was allowed to be open at one time. Now multiple calls to the same stored procedure can be made without closing the result set cursors so that more than one instance of a query can be open simultaneously.