If you are using DB2/400, this link may help (see chapter 5.5).
http://www.redbooks.ibm.com/redbooks...tml/wwhelp.htm
It suggests that once you have opened the cursor that you want returned, to the calling progam, you issue something similar to:
Code:
DECLARE c1 CURSOR FOR SELECT cusnam FROM customer ORDER BY cusnam; OPEN c1; SET RESULT SETS CURSOR
Leave a comment: