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!
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.