English Reference > English Commands > SUM

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.

Reality V15.0 ()

SUM Command (English) (m618304+sum.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

SUM

Generates a total sum of a specified attribute.

Syntax

SUM file-specifierattribute-name{item-list}{selection-criteria}{USING file-specifier}{macro-call}{(options}

Refer to Sentence Structure for descriptions of these parameters.

STAT

Use the STAT command if you need a count of items and an average.

Examples

In the first example, all items in the file are specified because no selection criteria are present.

:SUM GUESTS BILL-TOTAL
TOTAL OF Bill Total IS: $3,639.99

In the second example, a selection criterion is specified.

:SUM GUESTS WITH BILL-TOTAL > "240.00" BILL-TOTAL

TOTAL OF Bill Total IS: $772.86

RealityV15.0Comment on this topic