SUBFOOTING Statement
Statements
4–44
058057 Tandem Computers Incorporated
SUBFOOTING
Statement
The SUBFOOTING statement allows you to specify a subfooting to be printed at the
bottom of each report page for all reports in the current session unless overridden or
reset by another SUBFOOTING statement or temporarily overridden by a
SUBFOOTING clause. See the SUBFOOTING clause in Section 5. The syntax of the
SUBFOOTING statement is:
SUBFOOTING [
print-list [ CENTER ] ] [ ; ]
print-list
can be any combination of literals, FORM, SKIP, SPACE or TAB clauses. A
print-list can 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 used in a print-list are discussed in Section 5. The other
elements are discussed in Section 3.
Specifying Field Names
within a SUBFOOTING
Statement
If you specify a field name within a print-list of a SUBFOOTING statement, the field
value printed is the same value as in the last row of data on the current page. A field
appearing within the SUBFOOTING statement need not be explicitly included within
the following LIST statements. If a SUBFOOTING statement field is not included,
ENFORM effectively adds it to the LIST statement with a NOPRINT clause.
Spacing Considerations
By default, the subfooting begins in the same column position as the leftmost report
column. Using either SPACE or TAB clauses as the first element of the print-list
overrides this default. The 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:
SUBFOOTING "Inventory" SPACE 15 "Parts in Stock";
The following subfooting will appear at the bottom of the next report that is generated
without a LIST statement SUBFOOTING clause.
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 SUBFOOTING 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 SUBFOOTING
statement causes the subfooting to print on two lines:
SUBFOOTING "Report 2-A" SKIP "Total Sales";
The following subfooting will appear at the bottom of the next report that is generated
without a LIST statement SUBFOOTING clause.
Report 2-A
Total Sales
Summary of Contents for ENFORM 058057
Page 6: ...New and Changed Information 058057 Tandem Computers Incorporated v...
Page 18: ...Preface xvi 058057 Tandem Computers Incorporated This page left intentionally blank...
Page 19: ...Preface 058057 Tandem Computers Incorporated xvii...
Page 269: ...Glossary Glossary 4 058057 Tandem Computers Incorporated This page left intentionally blank...