ENFORM Reference Manual

BEFORE CHANGE Clause
Clauses
5–32 058057 Tandem Computers Incorporated
Spacing Considerations By default the BEFORE CHANGE clause 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 five spaces:
BEFORE CHANGE ON ordernum
PRINT "*****" SPACE 5 "Orders for " ordernum,
***** Orders for 122
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 BEFORE CHANGE printlist.
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 causes two lines
to be printed:
BEFORE CHANGE ON regnum PRINT "Begin of Report for"
SKIP "Region " regnum,
Begin of Report for
Region 1
Using the CENTER clause following the print-list of the AT START PRINT clause
centers the information on the page.
The CENTER, Option Variable, SKIP, SPACE, and TAB clauses are described in this
section.