Count of records selected for a report (sys.RecordCount)ΒΆ
!temp sys.RecordCount,,u4 |
Count of records selected |
Stores the number of records which have been selected from the driving file. sys.RecordCount is incremented at the start of each cycle, when a new record is read from the driving file, provided that the record passes all selection criteria.
Note
It is possible to use an automatic temp (declared by !auto) to count all the records in the driving file, regardless of selection (though respecting startrec and endrec criteria).
EXAMPLE
!auto TotRecs,,i4 = TotRecs + 1
!final {
print sys.RecordCount;
print " records selected from a possible "; TotRecs
}