You can format the output of heading and footing time and date information in the same way you can specify time and date display in a window, by including a output format specification. Use any format code that you would use at a window prompt (or in the BASIC+ OConv statement).
The general syntax for formatting the time and date display is:
Heading "text 'option[,format]'"
where format is any format specification such as "D2/", "MT", etc. For details on what formats you can use, refer to the OConv statement in Chapter 3: BASIC+ Command Reference.
For example, the format "D4." produces output in the format "mm.dd.yyyy". So, to specify a footing that contains a date in that format, you would include that argument after a comma that immediately follows the T, D, or TD option value.
Heading "Output date: 'D,D4.'"
This would produce the heading
Output date: 09.30.1992
This is an example of a command using a heading.clause. Below are examples of report headings created by using a heading.clause.
Example:
Heading "Invoices Sorted by INV_NO'L'As of 'DL'"
Output:
Invoices Sorted by INV_NO As of 01 JAN 1991
Example:
Heading "Invoices Sorted by INV_NO'S10'Page 'PL'As of 'T'"
Output:
Invoices Sorted by INV_NO Page 1 As of 09:00:00 01 JAN 1991
Example:
Heading "Today's report for table 'FL'Page 'PP'"
Output:
Today's report for table INVOICES Page 1