BookmarkSubscribeRSS Feed
deleted_user
Not applicable
by using proc template how to define our own style
1 REPLY 1
Cynthia_sas
SAS Super FREQ
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

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 1 reply
  • 596 views
  • 0 likes
  • 2 in conversation