SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Enhancing Reports
Specifying Footnotes


Modifying and Canceling Footnotes

Like TITLE statements, FOOTNOTE statements remain in effect until you modify them, cancel them, or end your SAS session. For example, the footnotes assigned in the PROC PRINT step below also appear in the output from the PROC TABULATE step.

     footnote1 'Data from Treadmill Tests';
     footnote3 '1st Quarter Admissions';
     proc print data=clinic.stress;
        var resthr maxhr rechr;
        where tolerance='I';
     run;
     proc tabulate data=clinic.stress;
        where tolerance='I';
        var resthr maxhr;
        table mean*(resthr maxhr);
     run;

Also as with TITLE statements, redefining a footnote line cancels any higher-numbered footnote lines. In the example below, defining a footnote for line 2 in the second report automatically cancels footnote line 3.

     footnote3 'See Report 2 for Aerobics Totals';
     proc print data=clinic.therapy;
        var swim walkjogrun aerclass;
        sum swim walkjogrun;
     run;
     footnote2 'Site 1 Only';
     proc print data=clinic.therapy;
     run;

To cancel all previous footnotes, specify a null FOOTNOTE statement (a FOOTNOTE statement with no number or text) or a FOOTNOTE1 statement with no text. In the program below, the null FOOTNOTE statement cancels all footnotes in effect. The PROC TABULATE output appears without a footnote.

     footnote1 'Data from Treadmill Tests';
     footnote3 '1st Quarter Admissions';
     proc print data=clinic.stress;
        var resthr maxhr rechr;
        where tolerance='I';
     run;
     footnote;
     proc tabulate data=clinic.stress;
        var timemin timesec;
        table max*(timemin timesec);
     run;

back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement