Apply color to PROC REPORT

This post was kindly contributed by SAS & Statistics - go there to comment and to read the full post.

Highlight a row:
 
compute __stresc;
  if index(__stresc,’>’) then call define(_row_,”style”,”style={backgroundcolor=red}”);
endcomp;

Highlight a cell:
 
compute __stresc;
   if index(__stresc,’>’) then call define(_col_,”style”,”style={color=red}”);
endcomp;
Color a row:

compute __stresc;
   if index(__stresc,’>’) then call define(_row_,”style”,”style={color=red}”);
endcomp;

This post was kindly contributed by SAS & Statistics - go there to comment and to read the full post.