BookmarkSubscribeRSS Feed
Calcite | Level 5

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,



Super User

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.


Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.


Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 3 in conversation