SUPPRESS Clause
Clauses
5–64
058057 Tandem Computers Incorporated
SUPPRESS Clause
The SUPPRESS clause allows you to eliminate certain records from being printed in
the report. The records still contribute to the report calculations. This clause is an
optional part of the part of the LIST statement. This clause cannot be used with the
FIND statement. The syntax of the SUPPRESS clause is:
SUPPRESS [ WHERE ]
logical-expression
logical-expression
is an expression returning a true or false value. See Section 3 for more
information.
The SUPPRESS clause defines a condition or conditions that prevents specific records
from printing throughout a report. For example, in the following query, the
SUPPRESS clause causes ENFORM to print only the inventory, part number, and part
name where the inventory is greater than zero:
LIST ASCD inventory,partnum,partname,
SUPPRESS WHERE inventory GT 0;
This query generates the following report:
Part
INVENTORY Number PARTNAME
--------- ------ ------------------
-100 2001 DECIMAL ARITH
-32 6402 TERM CRT PAGE
-16 6201 SYNC CONTROLLER
-1 5504 LP 900 LPM
0 5505 LP 1500 LPM
ENFORM still includes the suppressed records in AFTER CHANGE and BEGIN
CHANGE clauses, subtotals, totals, and other calculations specified for the report.
Note that the value of the first record of an AFTER CHANGE clause or the last record
of a BEFORE CHANGE clause is used for the print list whether or not that record is
printed.
Aggregates cannot be used in a SUPPRESS WHERE clause; however, you can
reference a user variable that has been assigned the aggregate value.
Содержание 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...