I've defined a style with Proc Template to format RTF tables generated from Proc Report. I'm trying to use the DEFINE statement in Proc Report to change the justification of columns, yet it has no effect when I apply the template. Apparently the template is taking precedent over the options I'm specifying in the DEFINE statement. If I apply a template to my RTF table then does this mean I can't do any formatting of output from Proc Report? Is it one or the other?
Hi: That is not what I observe. As you can see in the output below, using ODS RTF:
My style template justification and colors are used for the first PROC REPORT step (just=center, color=navy, background=lightyellow). But all of the style overrides and justifications were used in the second PROC REPORT. The way inheritance works is that the most specific style (what is in PROC REPORT) overrides the general style characteristics specified in the style template. So all I can think is that there may have been some issue with your template code or your override code.
Hope this helps,
Cynthia
Really should share the code of the template, the proc report and some example data to use.
For all we can tell you are misspelling the override, using the wrong option, have it in the wrong place in the Proc Report code or the data is just plain wrong for some conditional appearance.
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.