The SAS Output Delivery System and reporting techniques

ODS Proc Template style elements

Reply
N/A
Posts: 0

ODS Proc Template style elements

Hi,

I would like to know which style element effects what part of the ODS output.

e.g.
PROC TEMPLATE;
DEFINE style styles.mystyle /store = libname.templat;
parent = styles.default;

STYLE body from document /
backgroundimage = 'c:\myimage.jpg';

STYLE systemtitle from titlesandfooters /
font = fonts('TitleFont2')
foreground = color_list('Color3')
just = center
vjust = top;

END;
SAS Super FREQ
Posts: 8,868

Re: ODS Proc Template style elements

Posted in reply to deleted_user
Hi:
One place to start is in the documentation. If you go to:

SAS(R) 9.1 Output Delivery System User's Guide -->
HTML, Printer Family, and Markup Languages Style Elements and Their Inheritances

you will find the "official" documentation for inheritance. Generally speaking, however, there are a couple of quicker ways to track down the style elements that you might need to change. Once you know the element you need to change, then you can go to the doc to find its inheritance chain.

The alternative methods are described in this Forum posting:
http://support.sas.com/forums/thread.jspa?messageID=4032࿀

One method involves the use of creating an HTML file and then looking for the CLASS= attribute in the HTML source (that is your link to the "lowest level" Style element that controls the style). Or the other method is to use a diagnostic tagset, like style_popup to find the style elements.

Another good resource is the R&D and Tech Support FAQ on Proc Template FAQ site:
http://support.sas.com/rnd/base/topics/templateFAQ/Template.html (start here and then look for the specific PROC TEMPLATE or STYLE template links)

Good luck,
cynthia
Ask a Question
Discussion stats
  • 1 reply
  • 131 views
  • 0 likes
  • 2 in conversation