Posted by Grant Foraker on August 23, 2006 at 10:16:45:
My pre Comet 2007 project is to eliminate background programs and display a Progress Bar in place of the old QCRT odometer.
I'm trying to get a reasonable record count from keyed files to make my progress bars look proportional to the number of records being processed. Without doing a key order read and count of the key range.
Tried:
1. FSTAT - I can calculate the total number of records in a keyed file. Unfortunately the total includes deletes. Not bad for a full file process but not so good with a partial file range.
2. RECNUM - gives the record number. A FIRST could yield a value of 500 and a LAST a value of 1. Minus 500 records in the file? Don't think so. Keyed files would have to be continuously rebuilt to make RECNUM work.
Any other suggestions?