Enform Plus Reference Manual

Statements
Enform Plus Reference Manual422684-001
4-3
AT END Statement
AT END Statement
The AT END statement allows you to specify information that is printed at the end of all
subsequent reports in the current session unless canceled or reset by another AT END
statement or overridden by an AT END clause. (See the AT END PRINT Clause
on
page 5-26.) The syntax of the AT END statement is:
print-list
can contain any combination of literals, FORM, SKIP, SPACE, or TAB clauses. The
print-list can also contain the following elements that can be modified by AS,
AS DATE or AS TIME clauses: field names, arithmetic expressions,
IF/THEN/ELSE expressions, System Variable clauses, JULIAN-DATE clauses,
TIMESTAMP-DATE clauses, TIMESTAMP-TIME clauses, user tables, user
variables, or parameter names.
The clauses that can be used in a print-list are described in Section 5, Clauses
. The
other elements are described in Section 3, Enform Plus Language Elements.
Specifying a Field Name in an AT END Statement
If you specify a field name within the print-list of an AT END statement, Enform
Plus prints the same field value as in the last row of the report. A field name appearing
within the print-list of an AT END statement need not be explicitly included within
the following LIST statements. If the field name is not included, Enform Plus in effect
adds the field name with a NOPRINT clause.
Spacing Considerations
By default the information you specify in the print-list of an AT END statement
begins printing in the same column position as the leftmost column of the report. By
using either the SPACE or TAB clause as the first element in the print-list, you
can override the default. The SPACE or TAB clause can appear anywhere within the
print-list. For example, the SPACE clause in the following AT END statement
causes the two literals to be separated by 15 spaces:
AT END PRINT "Report" SPACE 15 "Total Sales";
Report Total Sales
If you specify either a SKIP clause or the symbol / (slash) within a print-list,
Enform Plus advances one or more lines before printing the rest of the AT END print-
list. The number of lines advanced can be affected by one or more of the following:
the digit (if any) following the keyword SKIP, the number of slashes specified, or the
option variable @VSPACE. In the following example, the SKIP clause in the AT END
statement causes Enform Plus to print two lines:
AT END [ PRINT print-list [ CENTER ] ] [ ; ]