Usage Note 23659: Change the default style that is used when generating ODS HTML output
Beginning with SAS® 9.3, HTMLBLUE is the default style that is used by ODS HTML in the SAS windowing environment. In earlier releases, and in SAS 9.3 using SAS in batch mode, the default style is DEFAULT. To choose a different style as the default for ODS HTML statements, make the following selection from the SAS menu:
Tools ▶ Options ▶ Preferences
On the Results tab, click the down arrow for the Style: option to view the list of styles, and choose the desired default style. Click OK to save the selection.
Subsequent ODS HTML statements will generate output using the selected style unless a STYLE= option override is used.
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
In SAS 9 the value Selected Style in the registry key ODS\DESTINATIONS\HTML controls the ODS HTML destination's default style. The test code creates a file called html.sascreg which PROC REGISTRY uses to change the Selected Style value, to SASWEB. Subsequent ODS HTML statements will generate output with SASWEB as the style unless a style= override is used.
data _null_;
file "html.sasxreg";
put'[ODS\DESTINATIONS\HTML]';
put '"Selected Style" = "SASWEB"';
run;
/* the USESASHELP option updates the SASHELP registry, and requires administrator privileges */
proc registry import="html.sasxreg" ; *usesashelp;
run;
ods preferences;
ods html file="file.html";
proc print data=sashelp.class;
run;
ods html close;
| Type: | Usage Note |
| Priority: | low |
| Topic: | SAS Reference ==> ODS (Output Delivery System) Third Party ==> Output ==> HTML
|
| Date Modified: | 2007-08-28 14:34:33 |
| Date Created: | 2004-01-09 16:19:09 |