SAS ODS HTML 输出中的标题抑制

问题描述 投票:0回答:1

基本 SAS ODS 标题问题 - 我想要 ODS 输出的总体文档标题。但是,它总是复制自身或抑制输出中的后续标题。在不影响后续标题的情况下记录整个文档标题的正确方法是什么?没有一个常见的建议可以实现这一点,例如:清除文档标题,添加“nogtitle”,“bodytitle”,确保连续的标题编号等。下面介绍了我尝试过的多种组合之一 - 在本例中是整体标题出现多次 - 一次在标题 2 上方,然后在标题 3 上方:

Title "Report of Monthly Sales";

title2 "Print of First Ten Observations of East Regional Sales";
Proc print data = eastregion (obs=10);
run;
title2;

title3 "Freq of East Regional Sales";
Proc freq data = eastregion;
tables region;
run;
title3;
 
html sas title
1个回答
0
投票

在您的代码中,

title2;
语句清除了副标题,但原始的
title
语句仍然有效。

您必须使用

title;
在第一次输出后清除主标题,并为每个后续输出步骤设置副标题。

title "Report of Monthly Sales"; * create the main title;

title2 "Print of First Ten Observations of East Regional Sales"; * create the sub-title;
Proc print data = eastregion (obs=10);
run;
title; * clear the main title;

title2 "Freq of East Regional Sales"; * change the sub-title;
Proc freq data = eastregion;
tables region;
run;
title2;
© www.soinside.com 2019 - 2024. All rights reserved.