Clauses
HEADING Clause
HEADING Clause
Default Headings
Multiple Line Headings
5–40
The HEADING clause allows you to override the default column title for a target-item
or by-item in a report. The HEADING clause also allows you to define a column title
for target-items, such as arithmetic expressions, that do not have a default column title.
The syntax of the HEADING clause is:
by-item
{
}
target-item
by-item
is the name of a field that has been grouped by a BY or BY DESC clause
target-item
is a record name, a field name, a numeric literal, a predefined aggregate, a user
aggregate, an arithmetic expression, an IF/THEN/ELSE expression, a user
variable, a System Variable clause, or a JULIAN-DATE clause.
heading-string
is a string literal. Remember string literals must be enclosed within quotation
marks (" ").
When the HEADING clause is not specified explicitly, ENFORM obtains a heading
from one of these sources:
the HEADING clause specified either in the dictionary or in a DECLARE
statement
the field name specified in the dictionary or name of the user variable, aggregate,
or table specified in a DECLARE statement
If you want to print more than one target-item or by-item under the same column
heading, use a NOHEAD clause to prevent ENFORM from printing the unwanted
heading. The NOHEAD clause is discussed later in this section.
Multiple line headings are created by using a slash (/) within the heading string.
058057 Tandem Computers Incorporated
HEADING " heading-string "