BookmarkSubscribeRSS Feed
deleted_user
Not applicable
by using proc template how to define our own style
1 REPLY 1
Cynthia_sas
Diamond | Level 26
Hi:
First, you need to decide what your destination of choice is because different destinations use different default style templates:
1) ODS HTML -- uses a style template called 'DEFAULT' as the basis for all style attributes
2) ODS RTF -- uses a style template called 'RTF' as the basis for all style attributes
3) ODS PDF -- uses a style template called 'PRINTER' as the basis for all style attributes
4) in addition, for HTML-based destinations (HTML, HTML3, MSOFFICE2K) you can specify a Cascading Style Sheet for setting style attributes -- as an alternative to using a SAS Style template.

Second -- once you decide on your destination, decide WHAT style attributes you want to change. Then experiment with the existing style templates and see whether one is closer to the kind of output you want to generate. For example....for RTF destinations or PDF destinations... many people find a style template called JOURNAL is very close to what they want to generate (no interior table lines -- horizontal lines at the top and bottom of the table.

Third -- study an existing style template and learn about PROC TEMPLATE syntax and the ODS PATH statement. Search the Tech Support notes for examples of style templates for your destination. For example -- a style template designed for HTML (relative font sizes) may not work well with PDF which expects absolute PT sizes.

Last but not least, consider contacting Tech Support for help with style templates. There are many great Tech Support sites and FAQ available on PROC TEMPLATE -- but the steps to building a style template are lengthy, too lengthy to post all the steps here.

cynthia

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

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!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 974 views
  • 0 likes
  • 2 in conversation