Help using Base SAS procedures

Highlighting a row using proc print

Reply
Frequent Contributor
Posts: 83

Highlighting a row using proc print

Hi

is it possible to highlight a row/color it in SAS using proc print and ODS PDF ?
SAS Super FREQ
Posts: 8,743

Re: Highlighting a row using proc print

Hi:
You can only highlight an entire ROW using PROC REPORT with a CALL DEFINE statement:
[pre]
if then do;
call define (_ROW_,'style','style={background=pink}');
end;
[/pre]

PROC PRINT does not have that capability. In the above code snippet, in a PROC REPORT COMPUTE block, the entire ROW would have a background color of PINK based on the condition -- of course, you could set other style attributes than the background -- that is only an example. The only other way besides PROC REPORT to highlight an entire row based on a condition is to use a custom TABLE template with a DATA step program.

cynthia
Ask a Question
Discussion stats
  • 1 reply
  • 156 views
  • 0 likes
  • 2 in conversation