Specifying Styles

Specify a Style for an ODS Destination

Each ODS destination has a default style that is set by SAS. By specifying STYLE=style-definition in your ODS destination statement, you can create an entirely different appearance for your graphs.
For example, you can specify that ODS apply the Styles.Journal style to all HTML output with one of the following statements:
ods html style=styles.journal;
ods html style=journal;
This style is applied to all output for that destination until you change the style or start a new SAS session.
Note: In Windows and UNIX operating environments, when the ODS Graphics procedures are executed in the SAS Windowing environment, HTML is the default destination. If you close this destination and do not open another destination, then no destinations are open. (In batch mode, the default destination is LISTING.)

Change the Default Style for the HTML Destination

The default style for the HTML destination is HTMLBlue.
To change the default style:
  1. Select Toolsthen selectOptionsthen selectPreferences.
  2. Select the Results tab.
  3. Select a new default style from the Style list box.
  4. Click OK.

Changing a Default Style in the SAS Registry

By default, the SAS registry is configured to apply a default style to the output for each ODS destination. To permanently change the default style for a destination, you can change the setting of Selected Style in the SAS registry.
For more information about ODS destination settings in the SAS registry, see Changing ODS Destination Default Settings in SAS Output Delivery System: User's Guide.