English Reference > English Commands > COUNT

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

RealityV15.1Online Documentation (MoTW) Revision 7

COUNT Command (English) (m618304+count.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

COUNT

Reports the total number of items found in a file based on the selection criteria specified.

Syntax

COUNT file-specifier {item-list} {USING file-specifier} {selection-criteria} {(options}

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.

Note: You cannot use C and G options at the same time. If you specify both, the G option takes precedence.

P Send the report to the printer.

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.

RealityV15.1 (MoTW) Revision 7Comment on this topic