The default style for each ODS destination is specified in the SAS Registry. For example, the default style for the HTML destination is HTMLBLUE, and the default style for the RTF destination is RTF. You can specify a default style for all your output in a particular ODS destination. This is useful if you want to use a different ODS style, if you have modified one of the styles that the SAS System supplies (see the section Style Templates and Colors), or if you have defined your own style. For example, you can specify the JOURNAL style as the default style for RTF output.
The recommended approach for specifying a default style is as follows. Open the SAS Registry Editor by typing regedit
on the command line. Expand the node and select a destination (for example, select ). Double-click the item, shown in FigureĀ 21.75, and specify a style. This can be any style that the SAS System supplies or a user-defined style, as long as you can find
it in the current template search path (for example, specify ). You can specify a default style for the other destinations in a similar way.
In a few cases, the default style is specified in more than one place. Assume you are using the SAS windowing environment and Microsoft Windows or UNIX in the following:
If you expand the node
(which refers to the obsolete HTML3 destination), you see that the is DEFAULT.If you expand the node
, you see that the is HTMLBLUE.If you expand the node
, you see that the is HTMLBLUE.If you want to change the default style for the HTML destination, you need to change both HTML4 entries in the registry.
Figure 21.75: SAS Registry Editor
ODS searches sequentially through each element of the template search path for the first style template that matches the name of the style specified in the SAS Registry. It uses the first style template that it finds. (For more information about the template search path, see the sections Saving Customized Templates, Using Customized Templates, and Reverting to the Default Templates in ChapterĀ 22: ODS Graphics Template Modification.) If you are specifying a customized style as your default style, the following are useful suggestions:
If you save your style in Sasuser.Templat
, verify that the name of your default style matches the name of the style specified in the SAS Registry. For example, suppose
the RTF style is specified for the RTF destination in the SAS Registry. You can name your style RTF and save it in Sasuser.Templat
. This blocks the RTF style in Sashelp.Tmplmst
(provided that you did not alter the default template search path).
If you save your style in a user-defined template store, verify that this template store is the first in the current template search path. Include the ODS PATH statement in your SAS autoexec file so that it is executed at start-up.
For the HTML destination, an alternative approach for specifying a default style is as follows. From the main SAS window, select
. On the tab, select the check box and select a style from the list.