HEADING

Heading halts all subsequent output to the terminal at the end of each page. The statement evaluates and displays an expression at the top of each page. Current output sent to the terminal, is paused until entry of a carriage return at the terminal - unless the N option is specified.

COMMAND SYNTAX

    HEADING expression

SYNTAX ELEMENTS

The expression should evaluate to a string printed at the top of every page of output. The string may contain a number of interpreted special characters, replaced in the string before printing. The following characters have special meaning within the string:

ValueDescription
"C{n}"Center the line. If n is specified the output line is
assumed to be n characters long.
"D" or \\Replace with the current date.
"L" or ]Replace with the newline sequence.
"N"Terminal output does not pause at the end of each
page.
"P" or ^Replace with the current page number.
"PP" or ^^Replace with the current page number in a field of 4
characters. The field is right justified.
"T" or \Replace with the current time and date.
"Replace with a single " character.

NOTES

If output is to the printer, a PRINTER ON statement is in use, and does not page output sent to the terminal with the CRT statement. Unless you specify the "N" option, all output sent to the terminal is paged.

EXAMPLES

    HEADING 'Programming staff by size of waist Page "P"'
Last update: Sat, 16 Jul 2022 15:34