ods rtf file='c:/sample.rtf' bodytitle;
title 'My Sample Title';
footnote 'My Sample Footnote';
proc report data=sashelp.class nowd;
column age height weight;
define age / group;
define height / mean f=8.;
define weight / mean f=8.;
run;
ods rtf close;
-----------------------
如果運行上面語句,會在輸出的RTF文檔上加上日期和序號作爲頁眉,要想去除頁眉,應該在運行上面語句前加上如下選項:
options nodate NONUMBER;
nodate代表不輸出日期
nonumber代表不輸出頁號
這樣就乾乾淨淨了,完整程序如下:
options nodate NONUMBER;
ods rtf file='c:/sample.rtf' bodytitle;
title 'My Sample Title';
footnote 'My Sample Footnote';
proc report data=sashelp.class nowd;
column age height weight;
define age / group;
define height / mean f=8.;
define weight / mean f=8.;
run;
ods rtf close;