Wednesday, September 30, 2015

Apply color to PROC REPORT

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;