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