FOOTNOTE Statement

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


Without Arguments

Using FOOTNOTE without arguments cancels all existing footnotes.


specifies the relative line to be occupied by the footnote.
Default:If you omit n, SAS assumes a value of 1.
Range:n can range from 1 to 10.
Tip:For footnotes, lines are pushed up from the bottom. The FOOTNOTE statement with the highest number appears on the bottom line.
specifies formatting options for the ODS HTML, RTF, and PRINTER(PDF) destinations.
specifies that the footnote text is bold font weight.
ODS destination:HTML, RTF, PRINTER
specifies the footnote text color.
ODS destination:HTML, RTF, PRINTER
specifies the background color of the footnote block.
ODS destination:HTML, RTF, PRINTER
specifies the font to use. If you supply multiple fonts, then the destination device uses the first one that is installed on your system.
ODS destination:HTML, RTF, PRINTER
specifies the point size.
ODS destination:HTML, RTF, PRINTER
specifies that the footnote text is in italic style.
ODS destination:HTML, RTF, PRINTER
specifies justification.
specifies center justification.
specifies left justification.
specifies right justification.
ODS destination:HTML, RTF, PRINTER
specifies a hyperlink.
ODS destination:HTML, RTF, PRINTER
Tip:The visual properties for LINK= always come from the current style.
UNDERLIN= 0 | 1 | 2 | 3
specifies whether the subsequent text is underlined. 0 indicates no underlining. 1, 2, and 3 indicates underlining.
ODS destination:HTML, RTF, PRINTER
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.
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 Understanding Styles, Style Elements, and Style Attributes in SAS Output Delivery System: User's Guide and Concepts: Styles and the TEMPLATE Procedure in SAS Output Delivery System: User's Guide.
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
Tips: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.

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.

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.


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.


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.

Example: Using the FOOTNOTE Statement

These examples of a FOOTNOTE statement result in the same footnote:
  • footnote8 "Managers' Meeting";
  • footnote8 'Managers'' Meeting';
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='' "SAS";

See Also

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