繁华落尽,如风轻狂

原创 网友提问:如何在sas中清除rtf输出中的页眉收藏

新一篇: SAS9.2帮助很好很强大 | 旧一篇: SAS9.2安装先睹为快

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;

发表于 @ 2008年08月19日 22:42:00|评论(loading...)|收藏

新一篇: SAS9.2帮助很好很强大 | 旧一篇: SAS9.2安装先睹为快

评论

#agri521 发表于2008-11-04 08:36:43  IP: 139.18.25.*
简单实用!
发表评论  


登录
Csdn Blog version 3.1a
Copyright © 风