
TOTAL Clause
Clauses
058057 Tandem Computers Incorporated
5–71
TOTAL Clause
The TOTAL clause prints the grand total for a numeric target-item. This clause is an
optional part of the LIST statement and cannot be specified in a FIND statement. The
syntax of the TOTAL clause is:
{
}
target-item
by-item
TOTAL
target-item
is a record name, a field name, a numeric literal, a predefined aggregate, a user
aggregate, an arithmetic expression, an IF/THEN/ELSE expression, a user table
name, a user variable, a System Variable clause. The data type of the target-item
being totaled must be numeric.
by-item
is a field whose values are grouped by a BY or BY DESC clause.
When the TOTAL clause is specified, ENFORM prints the grand total for a target-item
or by-item after printing the last value of the target-item or by-item. ENFORM precedes
the total by two rows of underline characters, as specified by the @UNDERLINE
option variable. The Option Variable clauses are discussed in this section.
If the width of the value of a total exceeds the width of the target-item or by-item
display format, an overflow condition occurs causing asterisks to be printed in place of
the total. To prevent this, enlarge the display format by adding an AS clause to the
target-item being totaled. The AS clause is described in this section.
Содержание ENFORM 058057
Страница 5: ...New and Changed Information iv 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 6: ...New and Changed Information 058057 Tandem Computers Incorporated v...
Страница 18: ...Preface xvi 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 19: ...Preface 058057 Tandem Computers Incorporated xvii...
Страница 21: ...Notation Conventions xviii 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 25: ...ENFORM Terminology Introduction 1 4 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 121: ...TITLE Statement Statements 4 50 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 227: ...ENFORM Procedures ENFORM Syntax Summary A 16 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 269: ...Glossary Glossary 4 058057 Tandem Computers Incorporated This page left intentionally blank...