# NUMRECS()

Syntax:

Then: xx = NUMRECS(lookupname)
Then: xx = NUMRECS(-)

lookupname is the name of a lookup.
- represents the current file (file in which the processing resides).
The return value is the number of records in the designated file. This value is assigned to the variable XX.

Version Ref: 4.5

Description:

NUMRECS obtains the number of records in a filePro file.

IMPORTANT: Deleted and unused (blank) records are included in the count.

Examples:

If:
Then: lookup cust k=1 i=a ex
If:
Then: aa = numrecs(cust)