0

尽管使用了 noptitle,但我还是使用了 ODS 输出到频率表的 PDf,它仍然在顶部打印 SAS 系统。

代码是

options nodate center nonumber ; 
ods noptitle ;

ods pdf file="Z:\temp.pdf" ;
ods proclabel="The totals";

proc freq data=compulsion;  
tables year; 
label year="year of the child";
;run;
ods pdf close; 

但我仍然得到主标题为“SAS系统”,如何删除这个标题?

4

1 回答 1

3

只需使用一个空的标题语句,删除所有手动或自动分配的标题(简单但有效):

options nodate center nonumber ; 
ods noptitle ;
ods pdf file="Z:\temp.pdf" ;
ods proclabel="The totals";
title;/*<-reset all titles or overwrite it with wanted title*/
proc freq data=compulsion;  
tables year; 
label year="year of the child";
;run;
ods pdf close;  

编辑澄清: noptitle 仅删除由 proc 生成的标题,如“FREQ 程序”。“The Sas System”是一个与 proc 无关的标题

于 2016-06-16T08:48:07.637 回答