I have developed DB2 Stored Procedures in C++, some of which return a result set. Works fine with a Java Client. DB2 resides on OS/390.

How do you return a result set to a OS/390 C/C++ Program. The stored procedure does the dynamic select, opens the cursor, and then returns.
Thanks in advance.