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
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.