COUNT
Reports the total number of items found in a file based on the selection criteria specified.
Syntax
COUNT file-specifier {item-list} {USING
Refer to Sentence Structure for descriptions of these parameters.
Special options
C{n}Display running counters of the number of items selected and items processed. The counter display is refreshed after every n items processed (default 500) or after the total number of items if less than 500. For example, (C25) refreshes the display after every 25 items processed.
G{n}Completes once n items have been selected (default 500), or the end of the file is reached, whichever occurs first.
P Send the report to the printer.
Note
You cannot use C and G options at the same time. If you specify both, the G option takes precedence.
Examples
:COUNT GUESTS WITH BILL-TOTAL > "100"
17 ITEMS COUNTED
:COUNT GUESTS LE '400' WITH NAME (C
18 ITEMS SELECTED 24 ITEMS PROCESSED
18 ITEMS COUNTED
Both examples use implicit item-lists and relational operators in the selection criteria clause.