【问题标题】:Ods output delete SAS System titleOds 输出删除 SAS 系统标题
【发布时间】:2016-06-16 08:09:10
【问题描述】:

尽管使用了 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系统”,如何删除这个标题?

【问题讨论】:

    标签: sas ods


    【解决方案1】:

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

    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 程序”。 “Sas 系统”是一个与 proc 无关的标题

    【讨论】:

    • 您仍然需要ods noptitle 从报告标题中删除“频率程序”
    • @Keith:是的,复制代码后忘记加了,又加了,ty...
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多