网友提问:如何在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;

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值