Enform Plus Reference Manual

Statements
Enform Plus Reference Manual422684-001
4-47
TITLE Statement
TITLE Statement
The TITLE statement allows you to specify a title to be printed the top of each page for
all subsequent reports in the current session unless canceled or reset by another TITLE
statement or temporarily overridden by a TITLE clause. (See the TITLE Clause
on
page 5-69.) The syntax of the TITLE statement is:
print-list
can be 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, and
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 Within a TITLE Statement
If you specify a field name within the print-list of a TITLE statement, the field
has the same value as in the first row of the page. A field appearing within the TITLE
statement need not be explicitly included within the following LIST statements. If it is
not included, Enform Plus effectively adds it with a NOPRINT clause.
Spacing Considerations
By default, the title begins printing in the same column position as the leftmost report
column. By using SPACE or TAB clauses as the first element of the print-list, you
can override 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:
TITLE "Inventory" SPACE 15 "Parts in Stock";
Inventory Parts in Stock
If you specify either a SKIP clause or the symbol / (slash) within a print-list, the
printer advances one or more lines before printing the rest of the TITLE 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 of the TITLE statement
causes two lines to be printed:
TITLE [ print-list [ CENTER ] ] [ ; ]