2行上的SAS ods pdf脚注

时间:2019-07-11 08:11:20

标签: pdf sas ods footnotes

我想在pdf文件中输出SAS结果。在脚注中,我想在页面的右下角有2行:

  • Doc Research
  • 第1页,共10页

这里是一个例子:

options nodate nonumber;
data work.animals;
    input name $ weight;
    datalines;
    monkey 20
    shark 500
    lion 200
    wolf 120
    buffalo 400
    ;
run;

ods pdf file = 'C:\sasdata\animals.pdf';
ods escapechar= '!';
proc print data=work.animals;
    title 'Animals';
    footnote j = r 'Page !{thispage} of !{lastpage}';
run;
ods pdf close;
ods listing;

1 个答案:

答案 0 :(得分:1)

使用此:

footnote j = r "Doc Research !{newline} Page !{thispage} of !{lastpage}";