TEMPLATE Procedure: Creating Table Templates

HEADER Statement

Declares a symbol as a header in the table and specifies the order of the headers.
Restriction: The HEADER statement can be used only with the DEFINE TABLE statement.

Syntax

Required Argument

header-specification
is one or more headers. If the header is defined outside the current table template, reference it by its path in the template store. Headers in the template are laid out from top to bottom in the same order that they are specified in the HEADER statement. Each header-specification is one of the following:
"string"
specifies the text to use for the header. If you specify a string, you do not need to use a DEFINE HEADER statement. However, you cannot specify any header attributes except for a split character. If the SPLIT= header attribute is not in effect and if the first character of the header that you specify is neither a blank character nor an alphanumeric character, PROC TEMPLATE treats it as the split character.
header-path
is the path of the header template to use. A header-path consists of one or more names, separated by periods. Each name represents a directory in a template store. (A template store is a type of SAS file.)
_LABEL_
uses the label of the output object as the header. Each SAS procedure specifies a label for each output object that it creates. The DATA step uses the value of the OBJECTLABEL= option as the label of the output object. If OBJECTLABEL= is not specified, it uses the text of the first TITLE statement as the label.
Default:If you omit a HEADER statement, then ODS makes a header for each header template (DEFINE HEADER statement), and places the headers in the same order that the header templates have in the table template.