Suppress Clause - Tandem ENFORM 058057 Reference Manual

Data management library
Table of Contents

Advertisement

Clauses

SUPPRESS Clause

SUPPRESS Clause
5–64
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
---------
------
-100
2001
-32
6402
-16
6201
-1
5504
0
5505
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.
058057 Tandem Computers Incorporated
PARTNAME
------------------
DECIMAL ARITH
TERM CRT PAGE
SYNC CONTROLLER
LP 900 LPM
LP 1500 LPM

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enform

Table of Contents