SAS Institute. The Power to Know

SAS/GRAPH(R) 9.2 Reference

Previous Page | Next Page

Controlling The Appearance of Your Graphs

Specifying a Style


Changing the Current Style by Using the STYLE= Option in ODS Destination Statements

Changing the current style for an ODS destination is the easiest, simplest way of changing the appearance of your output. Changing the current style requires only the use of the STYLE= option on an ODS destination statement. By specifying only 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 template 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 or close the destination or start a new SAS session.


Changing the Default Style in the SAS Registry

By default, the SAS registry applies a default style to the output for each ODS destination. The default styles for each destination are listed in Default Style Templates. To permanently change the default style associated with a destination, you can change the setting of Selected Style in the SAS registry. For more information on ODS and the SAS registry, see Changing SAS Registry Settings for ODS in SAS Output Delivery System: User's Guide.

To permanently change the default style for a particular destination:

  1. Select Solutions [arrow] Accessories [arrow] Registry Editor, or issue the command REGEDIT in the command line.

  2. Select ODS [arrow] Destinations.

  3. Select the destination that you want to change the default style for.

  4. Select Selected Style, click the right mouse button, and select Modify. The Edit String Value window appears.

  5. Type the style in the Value Data text box and select OK.

CAUTION:
If you make a mistake when you modify the SAS registry, then your system might become unstable or unusable.   [cautionend]

SAS Registry Showing Selected Style Setting

[SAS Registry Showing Selected Style Setting]

Previous Page | Next Page | Top of Page