|
If you're already doing _Ropen api to open and process the file, easiest solution is: _Ropnfbk(openFile)->num_records where openFile is your (_RFILE *) handle from _Ropen. Next easiest is to use an ILE CL module that does RTVMBRD using NBRCURRCD keyword. Finally, I think QUSRMBRD API will also give you that and you wouldn't have to use CL. Elvis -----Original Message----- Subject: Finding total number of records in a DB2 table Is there an API or library function which can be used to know the total number of records in a DB2 table from within a C program? The program is running on the same iseries machine as is the DB2 table. P.Prasad
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.