ENFORM Reference Manual

Clauses
5–2 058057 Tandem Computers Incorporated
Table 5-1. ENFORM Clauses and Their Functions (continued)
Calculating Running Total, Total, Subtotal, and Percentage
Clause Function
CUM prints a running total for a numeric target-item. The CUM OVER clause
prints the running group total for a numeric target-item.
PCT prints the value of the percentage of the grand total for a numeric target-
item. The PCT OVER clause prints the percentage that each grouped
value is of the total of all values in the group.
SUBTOTAL prints the value of the target-item subtotals for each group.
TOTAL prints the value of the grand total for a target-item.
Extracting Current Values for Date, Time, Line Number, and Page
Clause Function
System Variable return the current value for the current date, time, line number, and page
number.
TIMESTAMP-DATE extracts the date portion of a timestamp field that has been created by the
GUARDIAN procedure TIMESTAMP.
TIMESTAMP-TIME extracts the time portion of a timestamp field that has been created by the
GUARDIAN procedure TIMESTAMP.
Printing User Supplied Information on a Report
Clause Function
AFTER CHANGE prints information for the current report preceding the records for each
grouped field value.
AT END PRINT prints information at the end of the current report. See also the AT END
statement in Section 4.
AT START PRINT prints information just before the first set of column headings for the current
report. See also the AT START statement in Section 4.
BEFORE CHANGE prints information for the current report following the records for each
grouped field value.
FOOTING prints a footing at the bottom of each page for the current report. See also
the FOOTING statement in Section 4.
SUBFOOTING prints a subfooting at the bottom of each page immediately preceding the
footing for the current report. See also the SUBFOOTING statement in
Section 4.
SUBTITLE prints a subtitle at the top of each page immediately following the title for
current report. See also the SUBTITLE statement in Section 4.
TITLE prints a title at the top of each page for the current report. See also the
TITLE statement in Section 4.