At End Statement; Specifying A Field Name In An At End Statement; Spacing Considerations - Tandem ENFORM 058057 Reference Manual

Data management library
Table of Contents

Advertisement

AT END Statement

Specifying a Field Name in
an AT END Statement

Spacing Considerations

The AT END statement allows you to specify information that is printed at the end of
all subsequent reports in the current session unless cancelled or reset by another AT
END statement or overridden by an AT END clause. (See the AT END PRINT clause
in Section 5.) The syntax of the AT END statement is:
AT END
[ PRINT print-list [ CENTER ] ] [ ; ]
print-list
can contain any combination of literals, FORM, SKIP, SPACE, or TAB clauses.
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 appear as part of a print-list are described in Section 5. The
other elements are described in Section 3.
If you specify a field name within the print-list of an AT END statement, ENFORM
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 in effect adds
the field name with a NOPRINT clause.
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. Using
either the SPACE or TAB clause as the first element in the print-list overrides 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
If you specify either a SKIP clause or the symbol / (slash) within a print-list, ENFORM
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 to print two lines:
AT END PRINT "End of Report for" SKIP "Region " regnum;
End of Report for
Region 1
Using a FORM clause within an AT END statement causes ENFORM to print the
remainder of the AT END print-list on a new page and to increment the page number.
058057 Tandem Computers Incorporated
Total Sales
Statements
AT END Statement
4–3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enform

Table of Contents