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
Nearly 200 sessions are now available on demand in the Innovate Hub.
Watch Now →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.