Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?



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. It takes the general form:

HEADING expression

Where 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:

  • "C{n}" Center the line. If n is specified the output line is assumed 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.

Alphabetic special characters are case insensitive, e.g. "D" is the same as "d".


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.

An example of use is as:

 HEADING "This is the first thing that shows up"

Go back to jBASE BASIC.

Was this article helpful?