My RPG code...
I've also tried CLIENT instead of CALLER.
My store procedure code...
If I run the SQL portion of the SQL code alone it does return records. How ever when I call it from the RPG program nothing is returned. What am I missing?
Code:
EXEC SQL Declare userList CURSOR FOR SELECT * FROM HFCRSLTS1 hfcData LEFT OUTER JOIN JOTSRSLTS1 JOTSData ON hfcData.USER_ID = JOTSData.P9USRID ORDER BY hfcData.LAST_NAME; EXEC SQL Open userList; EXEC SQL SET RESULT SETS WITH RETURN TO CALLER Cursor userList; *INLR = *on; return;
My store procedure code...
Code:
Create Procedure PGMLIB.CF_PRODUCER_USR_ALL (OUT V_SQLERROR NUMERIC(10) ) Language RPGLE Parameter Style General Reads SQL Data Dynamic Result Sets 1 External name 'PGMLIB/CF_105U3' Specific PGMLIB.CF_PRODUCER_USR_ALL;
Comment