0

我有 ods HTML 电子邮件发件人,其中包含 2 个 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;

结果我得到了 2 个报告,但它们之间有一个巨大的空白,比如额外的空白行或标题位置。我怎样才能将报告严格地放在另一个之下(只有 1 个空行)?提前谢谢

4

1 回答 1

0

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

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="thePath\sendmail.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;

那是你要找的吗?

于 2020-03-18T15:14:27.283 回答