Within this record, account-num is a group. The data type of a group is always
alphanumeric. When a group name is specified as a target-item within a LIST
statement, ENFORM displays each field within the group as alphanumeric data. If one
of the fields within a group contains binary data, using a group name as a target-item
causes undesirable results. For example, specifying:
causes ENFORM to display account-num without first converting it to a readable form.
Use the WHERE clause to limit the records that contribute to the report. The WHERE
Request-Qualification
clause is described in Section 5.
Conditional Printing
Use the SUPPRESS clause to define a condition or conditions that prevent specific
records from printing throughout a report. 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. The SUPPRESS clause is described
in Section 5.
Summary Reports
Summary reports contain only the first target-record from each group (created by a BY
or BY DESC clause) down to some level. Summary reports can only be generated by a
query that contains an aggregate.
The two methods of obtaining a summary report are:
When you explicitly request a summary report, you get a report summarized down to
the lowest level where an aggregate is calculated over that level. For example:
058057 Tandem Computers Incorporated
LIST account-num;
Explicitly request a summary report by setting the @SUMMARY-ONLY option
variable to ON before issuing the LIST statement.
Implicitly request a summary report by specifying only by-items and aggregates
over by-items in the query.
SET @SUMMARY-ONLY TO ON;
LIST BY dept, BY job, BY empname, salary,
COUNT(empname OVER job);
Statements
LIST Statements
4–35