|
Tim wondered: >My question is this... Do I have to loop >through all the lines in the result set >using fetch next, or is the a value I can >read after the SQL runs that contains the >number of rows? Predefined value SQLER3 (for RPG) provides the number of rows. It's in the manual. http://publib.boulder.ibm.com/pubs/html/as400/infocenter.html V5R1 Programming SQL SQL Reference (HTML) Appendix B (SQLCA) Field descriptions http://publib.boulder.ibm.com/pubs/html/as400/v5r1/ic2924/info/db2/rbafzmstf ielddescsqlca.htm#HDRFIELDDESCSQLCA A search for SQLER3 turned up 4 hits, including the above. --buck
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.