【发布时间】:2021-04-25 12:52:04
【问题描述】:
我打算在一个表类中用特定条件(男性和名字以'J'开头)为一些行着色:
ods excel close;
ods excel file='c://class.xlsx';
data class; set sashelp.class;
if substr(name,1,1)='J' and sex='M' then tt=1;
run;
proc report data=class nowd;
columns sex height weight name age tt;
compute tt;
if tt=1 then call define(_row_, "style", "style=[backgroundcolor=yellow]");
endcomp;
run;
ods _all_ close;
它不起作用,只是想知道如何解决它?
【问题讨论】: