SAS在2个过程报告之间空白



我有ods HTML电子邮件发件人,其中包括两个proc报告:

ods html file=sendmail;
proc report data=h2 headskip headline spacing=100;
column d1 d2 d3;
define d3/group noprint;
define d1/display left;
define d2/display center;
break afetr gr/;
compute after gr;
line " ";
endcomp;
compute before _page_ /style=[color=red] line;
line "abcdefg";
endcomp;
run;
proc report data=h3 noheader nocenter spacing=100;
column r1;
define r1/display style=[color='green'];
compute before _page_ /style=[color=red] line;
line "qwerty123";
endcomp;
run;
ods html close;
ods listing;

结果我得到了两个报告,但它们之间有很大的空白,比如额外的空白行或标题位置。如何将报告严格地放在一起(只有一行空白(?thx提前

在删除代码中的一些错误后,我没有看到两个报告之间有任何大的空白。

data h2;
input d1 $ d2 $ d3 $;
datalines;
aa    ss    ff
bb    qq    ff
cc    yy    dd
dd    dd    dd
;
run;
data h3;
input r1 $;
datalines;
gg
hh
jj
tt
;
run;
ods html file="thePathsendmail.html";
proc report data=h2 headskip headline spacing=100;
column d1 d2 d3;
define d3/group noprint;
define d1/display left;
define d2/display center;
break after d3/;
compute after d3;
line " ";
endcomp;
compute before _page_ /style=[color=red];
line "abcdefg";
endcomp;
run;
proc report data=h3 noheader nocenter spacing=100;
column r1;
define r1/display style=[color=green];
compute before _page_ /style=[color=red];
line "qwerty123";
endcomp;
run;
ods html close;
ods listing;

这就是你要找的吗?

最新更新