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).
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:
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.