1

所以在这里,我丢失了突出显示的“全部”行上的 TagAttr。我想要的是要突出显示的 Total 行并在输出上保持 TagAttr 。

ods tagsets.excelxp
file= "c:\Sheet1.xml"

proc tabulate data=sashelp.class missing;
class sex age;
var height;
table (sex='' all='Total')*
(age=''
all={label='Total NCO' s={background=yellow font_weight=bold}} *{s={font_weight=bold background=yellow }}),
(height='Height'*mean=' ' *[s=[tagattr='#,##0;[Red](#,##0);"-"']]
height='%height'*pctsum=''*[s=[tagattr='0.00%;[Red]0.00%;"-";"-"']])

/ box=_page_ style_precedence=row;
run;
ods tagsets.excelxp close;
4

0 回答 0