I have an HTML report with a column reporting data as XX (XXX) in a single cell, where XX represents one subset of my raw data set and (XXX) represents another subset. I am outputting this way to conserve space since it is a fairly large report. If possible I'd like XX to be one font color and (XXX) to be another to distinguish the two values a little better. Is it possible to do this via a compute/call define statement? I couldn't find anything in the documentation and my hunch says no, in which case I will separate the values into their own columns and control the font color that way.
Use odsescapahcar, and embed style elements in your data as:
data want; a="^s={color=red}34 (^s={color=blue}64)"; run; ods escapechar="^"; proc report...;
You can set any attributes inline then - search keyword is inline formatting.
Use odsescapahcar, and embed style elements in your data as:
data want; a="^s={color=red}34 (^s={color=blue}64)"; run; ods escapechar="^"; proc report...;
You can set any attributes inline then - search keyword is inline formatting.
Ah, didn't consider inline formatting. Worked perfectly, thanks!
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.