網友提問:如何在sas中清除rtf輸出中的頁眉

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;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章