× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi All,
I have a problem with result set. I am try to return a cursor back from
SQLRPGLE (without a fetch), so that I can read it within java and
process the data.  I have the code as follows:

C/EXEC SQL OPEN C1
C/END-EXEC

C/EXEC SQL SET RESULT SETS CURSOR C1
C/END-EXEC

But when I do a rs.next() I get nothing.  Should I have to fetch the
cursor within sqlrpgle?   How can I return/retrieve more than one result
sets?  I think I can just return as SET RESULT SETS CURSOR C1, C2.  Is
this fine? How can I retrieve in java?  For one, I do a ResultSet rs =
stmt.executequery() and then read them with rs.getString(). 

Thanks for all your help.
Sudha

Sudha Ramanujan
SunGard Futures Systems
sramanujan@xxxxxxxxxxxxxxxxxx
(312) 577 6179
(312) 577 6101 - Fax



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.