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

Data management library
Table of Contents

Advertisement

AT START Statement

Specifying a Field Name in
an AT START Statement

Spacing Considerations

The AT START statement allows you to specify information that is printed just before
the first set of column headings for all subsequent reports in the current session unless
cancelled or reset by another AT START statement or overridden by an AT START
clause. (See the AT START PRINT clause in Section 5.) The syntax of the AT START
statement is:
AT START [ 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, AS TIME clauses: field names, arithmetic expressions, IF/THEN/ELSE
clauses, System Variable clauses, JULIAN-DATE clauses, TIMESTAMP-DATE
clauses, TIMESTAMP-TIME clauses, user variables, or parameter names.
Clauses that can be used in a print-list are described in Section 5. The other
elements are described in Section 3.
If you specify both an AT START statement and a TITLE or SUBTITLE statement, the
AT START information is printed after the title or subtitle. The AT START statement
differs from the TITLE statement in that the AT START information is printed only on
the first page of a report while the title or subtitle is printed on every page of a report.
If you specify a field name within the print-list of an AT START statement, ENFORM
prints the same field value as in the first row of the report. A field name appearing
within the print-list of an AT START statement need not be explicitly included within
the following LIST statements. If the field name is not included, ENFORM effectively
adds it with a NOPRINT clause.
By default the AT START information begins printing in the same column position as
the leftmost report column. Using SPACE or TAB clauses as the first element of the
print-list overrides this default. SPACE or TAB clauses can also appear anywhere
within the print-list. In the following example, the SPACE clause causes the two
literals to be separated by 15 spaces:
AT START PRINT "Report" SPACE 15 "Total Sales";
Report
058057 Tandem Computers Incorporated
Total Sales
Statements
AT START Statement
4–5

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enform

Table of Contents