Sas 将脚注放在与proc报告一致的特定位置

Sas 将脚注放在与proc报告一致的特定位置,sas,Sas,我想把我的脚注放在表格底部,并与表格左侧的数据完全左对齐。有人能帮我做到这一点吗 目前 ___________bottom line of table___________ Note: Is my footnote just under the line and aligned ? 但我希望: ______________bottom line of table here________ Note: Is my footnote just

我想把我的脚注放在表格底部,并与表格左侧的数据完全左对齐。有人能帮我做到这一点吗

目前

           ___________bottom line of table___________ 

Note: Is my footnote just under the line and aligned ? 
但我希望:

 ______________bottom line of table here________           
 Note: Is my footnote just under the line and aligned ? 
代码如下:

data test;
input alpha $1-16 beta $18-41;
cards;
abc+def+ghi+jkl (zmc*[100]/1000-200)+23)
cab+ddd+ggg+jjj (zab*[100]/1000-200)+21)
;
run;



%let path=C:\;
ODS LISTING CLOSE;
ODS RTF  PATH="&path." FILE='test.rtf '

                       BODYTITLE;
ODS TRACE ON;
ODS ESCAPECHAR='^';
ODS PATH SHOW;

proc report data=TEST  nowd 
style(report)=[background=white fontstyle=roman fontsize=2.5  fontweight=medium  width=85% fontfamily='courier new']
style(header)=[background=white foreground=blue fontstyle=roman fontsize=2.5  fontweight=medium just=left fontfamily='courier new']
style(column)=[background=white fontstyle=roman fontsize=2.5  fontweight=medium fontfamily='courier new' ]
;
title   "^S={ fontstyle=roman fontsize=2.5 fontweight=medium fontfamily='courier new'} testsing my footnote";
footnote"^S={fontstyle=roman just=l fontfamily='courier new'fontsize=2.5 fontweight=medium } Note: Is my footnote just under the line and aligned ?";

column alpha beta;
define alpha/order ;
define  beta/order;

compute before;
line @1 '';
endcomp;

run;

ODS RTF CLOSE;
ODS LISTING;

这不是一个很好的解决方案,但是在转义符之外用j=l替换just=l,然后添加一些空格将其与表对齐

footnote j=l "^S={fontstyle=roman just=l fontfamily='courier new'fontsize=2.5 fontweight=medium } Note: Is my footnote just under the line and aligned ?";
否则,要使其在表下方完全对齐,并在默认情况下左对齐,请在proc报告中使用跨行,请参见下面的示例

options nodate nonumber;
title 'Notes After Every Table';

ods rtf file='c:\temp\tablenote.rtf' startpage=no;
ods escapechar='^';

proc report data=sashelp.class nowd;
  column sex height,(Min Mean Max N);
  define sex / group 'Sex ^{super 1}';
  define height /analysis 'Height';
  compute after / style={just=l};
    line '^{super 1} Age span for students 11-16 years';
  endcomp;
run;

proc report data=sashelp.class nowd;
  column sex weight,(Min Mean Max N);
  define sex / group 'Sex ^{super 2}';
  define weight /analysis 'Weight';
  compute after / style={just=l};
    line '^{super 2} Note there are more boys than girls';
  endcomp;
run;
ods _all_ close;

辛西娅提供Zender@SAS:

如果你想让所有东西都对齐,你可以使用
选项nocenter


如果您只是想让报告保持对正,可以在
proc report
语句中使用
nocenter
选项。

好的,我明白了……当我使用此模板过程时,它不起作用:

proc template;

  define style styles.testme;
   parent=styles.rtf;

   replace color_list/
   'bgH'=white;

   replace body from document / bottommargin = .2in
                                 topmargin    = .2in
                                 rightmargin  = .2in
                                 leftmargin   = .2in;

   replace table from output / outputwidth = 50%
                                frame       = hsides 
                                rules       = groups 
                                cellpadding = 1.0pt 
                                cellspacing = 0.1pt 
                                borderwidth = 1.0pt;

   end;

run;

谢谢Reeza…我已经知道在proc report中使用下标了…它完成了部分工作(对齐它),但我仍然不能将脚注(或注释)放在表的底线下(而不是像目前那样放在上一行)。所以我通过手动操作来纠正它……您是否检查了第二组代码,跨行示例。下标是可选的。好吧,我明白了…当我使用此模板过程时,它不起作用: