× 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.



On 11/21/2016 4:11 PM, Justin Taylor wrote:
This question could span multiple lists, so I'm just putting it here.

I have an SQLRPGLE program that's attempting to use JDBCR4 to read native DB2 tables (the tables aren't known at compile time and come from a separate table). The first row retrieved works fine, but all subsequent rows show that all the columns are blank. The rows all seem to be there (I tried a "fetch first 10 rows" and I got 1 valid row followed by 9 blank ones). I tried the com.ibm.db2.jdbc.app.DB2Driver driver, as well as the com.ibm.as400.access.AS400JDBCDriver driver and both do the same thing.

I'm not sure what to even look for here.

Are you using jdbc_nextRow()?
If yes, are you testing the return value? (*ON if get a row, *OFF otherwise)

...and jdbc_getCol()?
If yes, are you testing the null indicator?

I always submit Java stuff to batch so I can be 100% assured that I have
a known JVM + environment.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.