ENFORM Reference Manual

TITLE Clause
Clauses
058057 Tandem Computers Incorporated 5–69
TITLE Clause The TITLE clause allows you to specify printing of information at the top of each page
for the current report. See also the SUBTITLE clause in this section and the TITLE
statement in Section 4. The syntax of the TITLE clause is:
TITLE
print-list
[ CENTER ]
print-list
contains any combination of literals, FORM, SKIP, SPACE, or TAB clauses. A
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 variables, or parameter names.
The clauses that can be part of a print-list are described in this section. The other
elements are described in Section 3.
Specifying Field Names in a
TITLE Clause
If you specify a field name within a print-list of a TITLE clause, ENFORM prints the
same field value as in the first row of the page. A field name appearing within the
TITLE clause need not be explicitly included within the associated LIST statement. If
field name is not included, ENFORM in effect adds it with a NOPRINT clause.
Spacing Considerations By default the title begins in the same 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 clauses causes the two literals to be separated by 15 spaces:
TITLE "Inventory" SPACE 15 "Parts in Stock",
Inventory Parts in Stock
If you specify either a SKIP clause or the slash symbol (/) within a print-list, ENFORM
advances one or more lines before printing the rest of the AFTER CHANGE 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 SPACE clause causes two
lines to be printed:
TITLE "Report 2-A" SKIP "Total Sales",
Report 2-A
Total Sales