×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Doug,

Now that you mention it, it makes sense. Just please confirm that this has
been true even without specifying the INSENSITIVE keyword in the statement,
and whether ROW_COUNT is an alias of DB2_NUMBER_ROWS.

Thanks.

JS


message: 2
date: Tue, 21 Jul 2020 10:35:58 -0500
from: DEnglander--- via RPG400-L <rpg400-l@xxxxxxxxxxxxxxxxxx>
subject: Re: GET DIAGNOSTICS DB2_NUMBER_ROWS does not return exact row

I have seen that problem before a few years ago.

In SQLRPGLE, I use:


dcl-s #_rows_read uns(20);

exec sql
get diagnostics :#_rows_read = ROW_COUNT;


and always get the exact count.

Hope this helps.

Doug



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