FOOTING Statement
Pages the current output device and prints the specified text at the bottom of the page.
Syntax
FOOTING expression
Syntax Elements
espression is a DataBasic expression or string to be printed at the bottom of each page.
Operation
The page size is determined by the most recent TERM command executed at TCL. If the footing is longer than the TERM line length, the footing wraps around to the next line.
Special footing control strings can be used as part of the FOOTING statement. They are:
'C{n}'Center line (in field of n characters).
'D' or \\Current date.
'T' or \Current time and date.
'L' or ]Return and Linefeed.
'P' or ^Current page number.
'PP' or ^^Current page number right-aligned in four spaces.
'N'Inhibits paging.
''Two consecutive quotes print a single quote.
When FOOTING is used with the PRINT statement (not with CRT), terminal output is paged (RETURN must be pressed when a full page has been printed), unless the N option is used.
FOOTING statements can be changed or cleared independently, without altering the page number. The first nonnull FOOTING statement issued causes a page advance and a new footing. A FOOTING statement can be cleared by placing a null string after the statement. Unless both the heading and the footing are cleared, changing an existing heading or footing does not affect the page number.
Example
FOOTING "'L' 'L' TIME & DATE: 'T'"
Advances current output device to bottom-of-page and prints two Return/Linefeeds followed by TIME & DATE: current time current date at the bottom of the page.