Previous Page | Next Page

Statements

FOOTNOTE Statement



Writes up to 10 lines of text at the bottom of the procedure or DATA step output.
Valid: anywhere
Category: Output Control
Requirement: You must specify the FOOTNOTE option if you use a FILE statement.
See: FOOTNOTE Statement under Windows UNIX OpenVMS z/OS

Syntax
Without Arguments
Arguments
Details
Comparisons
Examples
See Also

Syntax

FOOTNOTE<n > <ods-format-options> <'text' | "text" >;


Without Arguments

Using FOOTNOTE without arguments cancels all existing footnotes.


Arguments

n

specifies the relative line to be occupied by the footnote.

Tip: For footnotes, lines are pushed up from the bottom. The FOOTNOTE statement with the highest number appears on the bottom line.
Range: n can range from 1 to 10.
Default: If you omit n, SAS assumes a value of 1.
ods-format-options

specifies formatting options for the ODS HTML, RTF, and PRINTER(PDF) destinations.

BOLD

specifies that the footnote text is bold font weight.

ODS Destinations: HTML, RTF, PRINTER
COLOR=color

specifies the footnote text color.

Alias: C
ODS Destinations: HTML, RTF, PRINTER
Featured in: Customizing Titles and Footnotes by Using the Output Delivery System
BCOLOR=color

specifies the background color of the footnote block.

ODS Destinations: HTML, RTF, PRINTER
FONT=font-face

specifies the font to use. If you supply multiple fonts, then the destination device uses the first one that is installed on your system.

Alias: F
ODS Destinations: HTML, RTF, PRINTER
HEIGHT=size

specifies the point size.

Alias: H
ODS Destinations: HTML, RTF, PRINTER
Featured in: Customizing Titles and Footnotes by Using the Output Delivery System
ITALIC

specifies that the footnote text is in italic style.

ODS Destinations: HTML, RTF, PRINTER
JUSTIFY= CENTER | LEFT | RIGHT

specifies justification.

CENTER

specifies center justification.

Alias: C
LEFT

specifies left justification.

Alias: L
RIGHT

specifies right justification.

Alias: R
Alias: J
ODS Destinations: HTML, RTF, PRINTER
Featured in: Customizing Titles and Footnotes by Using the Output Delivery System
LINK='url'

specifies a hyperlink.

Tip: The visual properties for LINK= always come from the current style.
ODS Destinations: HTML, RTF, PRINTER
UNDERLIN= 0 | 1 | 2 | 3

specifies whether the subsequent text is underlined. 0 indicates no underlining. 1, 2, and 3 indicates underlining.

Alias: U
Tip: ODS generates the same type of underline for values 1, 2, and 3. However, SAS/GRAPH uses values 1, 2, and 3 to generate increasingly thicker underlines.
ODS Destinations: HTML, RTF, PRINTER

Note:   The defaults for how ODS renders the FOOTNOTE statement come from style elements that relate to system footnotes in the current style. The FOOTNOTE statement syntax with ods-format-options is a way to override the settings that are provided by the current style.

The current style varies according to the ODS destination. For more information about how to determine the current style, see What Are Style Definitions, Style Elements, and Style Attributes? and Concepts: Style Definitions and the TEMPLATE Procedure in the SAS Output Delivery System: User's Guide.  [cautionend]

Tip: You can specify these options by letter, word, or words by preceding each letter or word of the text by the option.

For example, this code will make the footnote "Red, White, and Blue" appear in different colors.

footnote color=red "Red," color=white "White, and" color=blue "Blue";
'text' | "text"

specifies the text of the footnote in single or double quotation marks

Tip: For compatibility with previous releases, SAS accepts some text without quotation marks. When you write new programs or update existing programs, always enclose text in quotation marks.
Tip: If you use an automatic macro variable in the title text, you must enclose the title text in double quotation marks. The SAS macro facility will resolve the macro variable only if the text is in double quotation marks.
Tip: If you use single quotation marks (") or double quotation marks ("") together (with no space in between them) as the string of text, SAS will output a single quotation mark ( ') or double quotation mark ("), respectively.

Details

A FOOTNOTE statement takes effect when the step or RUN group with which it is associated executes. After you specify a footnote for a line, SAS repeats the same footnote on all pages until you cancel or redefine the footnote for that line. When a FOOTNOTE statement is specified for a given line, it cancels the previous FOOTNOTE statement for that line and for all footnote lines with higher numbers.

Operating Environment Information:   The maximum footnote length that is allowed depends on the operating environment and the value of the LINESIZE= system option. Refer to the SAS documentation for your operating environment for more information.  [cautionend]


Comparisons

You can also create footnotes with the FOOTNOTES window. For more information, refer to the online Help for the window.

You can modify footnotes with the Output Delivery System. See Customizing Titles and Footnotes by Using the Output Delivery System.


Examples

These examples of a FOOTNOTE statement result in the same footnote:

These are examples of FOOTNOTE statements that use some of the formatting options for the ODS HTML, RTF, and PRINTER(PDF) destinations. For the complete example, see Customizing Titles and Footnotes by Using the Output Delivery System.

footnote j=left height=20pt
       color=red "Prepared " 
       c='#FF9900' "on";

footnote2 j=center color=blue 
          height=24pt "&SYSDATE9";
footnote3 link='http://support.sas.com' "SAS";


See Also

Statement:

TITLE Statement

The TEMPLATE Procedure in the SAS Output Delivery System: User's Guide

Previous Page | Next Page | Top of Page