table_footer
. The FOOTER argument declares table_footer
as a footer. (Compare this approach with the
creation of the headers. You could use a FOOTER statement instead of the FOOTER
argument in the DEFINE statement.)
The TEXT statement specifies the text of the footer. When ODS binds the data component to the table definition (in the DATA step that follows), it will resolve the value of the macro variable SYSDATE9. The table definition itself contains a reference to the macro variable. The SPLIT= attribute specifies the asterisk as the split character. This prevents the header from splitting at the open parenthesis. If no split character were specified, ODS would interpret the nonalphabetic, leading character as the split character (see the discussion of text-specification(s) in TEXT Statement.) Alternatively, you could place a space character before the open parenthesis.
The STYLE= attribute alters the style element that renders the table
header. The style element header
is defined
in the default style definition, styles.default
.
(For information on viewing a style definition, see
Customizing Presentation Aspects of ODS Output.) In this case, the STYLE=
attribute specifies a small font size. All other attributes that are included
in header
remain in effect. This attribute
affects only the HTML output.
The END statement ends the footer definition.
define footer table_footer; text "(report generated on " sysdate9 ")"; split="*"; style=header{font_size=2}; end;