HEADING, HEADER |
![]() ![]() ![]() |
The HEADING keyword defines a page heading for the report.
Format
HEADING "text"
where
A page heading defined with the HEADING keyword will appear at the top of each page of the report in place of the default heading. Except when used with the SHOW verb, the heading text may contain control codes enclosed in single quotes to insert variable data or to alter the appearance of the heading. These control codes are:
When a heading line uses both G and C, the heading is considered as a number of elements separated by the G control options. The element that contains the C option will be centered. The items either side of the centered element are processed separately when calculating the number of spaces to be substituted for each G option.
A single quote may be inserted in the heading by use of two adjacent single quotes in the text.
If more than one HEADING definition is given in a single query, the first one is used. This allows a query sentence to include a heading that will override an alternative heading in the default listing phrase.
Example
The command
LIST SALES HEADER "'C'SALES REPORT'LDG'Confidential" HDR.SUP
might produce a report such as that below.
SALES REPORT 26 Jun 2000 Confidential SALES..... REGION SALESMAN ORDER VALUE 19845 North Harris 234.53 19858 North Sharp 845.50 19859 North Sharp 384.43 19887 North Roberts 279.40 19830 South Smith 324.39 19886 South Abbott 397.23 19866 South Abbott 465.31
7 records listed. |