Obtaining the number of the current row

DB-Library’s DBCURROW macro returns the current row of a regular row result set. An application can call DBCURROW to get an intermediate row count while processing rows.

Client-Library has no routine to replace calls to DBCURROW. However, you can add application code that increments a counter for each fetched row. For more information, see the entry for DBCURROW in Table A-1.