Hi,
I want to color the whole row , say _N_=3 and I dont know how to do it.
Can you please help?
Thank you,
HHCFX
proc report data=sashelp.class nowd ;
define /display;
compute ;
if then call define(_row_,"style","style={background=red}");
endcomp;
run;
Do like this
proc report data=sashelp.class nowd;
column name age sex height weight;
define name / display;
define age / display;
define sex / display;
define height / display;
define weight / display;
compute age;
count+1;
if count=3 then
call define(_row_,"style","style={background=red}");
endcomp;
run;
Do like this
proc report data=sashelp.class nowd;
column name age sex height weight;
define name / display;
define age / display;
define sex / display;
define height / display;
define weight / display;
compute age;
count+1;
if count=3 then
call define(_row_,"style","style={background=red}");
endcomp;
run;
Thanks a lot for your help.
HHC
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.