The FOOTING statement causes all subsequent output to the terminal to be halted at the end of each output page. The statement allows an expression to be evaluated and displayed at the foot of each page. If output is currently being sent to the terminal, the output will be paused until a carriage return is entered at the terminal (unless the N option is specified either in the current HEADING or in this FOOTING).



FOOTING expression



The expression should evaluate to a string that will be printed at the bottom of every page of output. The string may contain a number of special characters that are interpreted and replaced in the string before it is printed. The following characters have special meaning within the string:

"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



If output is being directed to the printer (a PRINTER ON) statement is in force then output sent to the terminal with the CRT statement is not paged. If output is being sent to the terminal then all output is paged.



FOOTING "Programming staff by IQ       Page "P"