![]() | ![]() | ![]() | ![]() | ![]() |
Styles are applied to the formatted ODS destinations based on the defaults for that destination. Below are the default styles for each destination.
HTML | Styles.Default |
RTF | Styles.Rtf |
Printer/PDF | Styles.Printer |
To modify the styles that are used by default with an ODS destination, the SAS Registry can be modified to change the style. This can be done interactively using the SAS Registry editor, or in batch using PROC REGISTRY.
To modify the style interactively, follow the steps below.
To modify the styles programmatically, use the REGISTRY procedure with the appropriate keys.
The code below will list the ODS destinations along with the style assigned to each destination by default.
The three examples in the Full Code tab illustrate how to modify the HTML, RTF, and PDF destinations, respectively, changing the style that each destination uses by default.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
/* Modify the ODS Markup destinations including HTML, */
/* changing the style from Styles.Default to Styles.Minimal */
filename source 'c:\temp.sasxreg';
data _null_;
file source;
put'[ODS\DESTINATIONS\MARKUP]';
put' "Selected Style" = "styles.minimal"';
run;
proc registry import=source list startat="ODS\DESTINATIONS\MARKUP" ;
run;
ods preferences;
/* Modify the ODS RTF destination changing the style from */
/* Styles.RTF to Styles.Minimal */
filename source 'c:\temp.sasxreg';
data _null_;
file source;
put'[ODS\DESTINATIONS\RTF]';
put' "Selected Style" = "styles.minimal"';
run;
proc registry import=source list startat="ODS\DESTINATIONS\RTF" ;
run;
ods preferences;
/* Modify the ODS PRINTER/PDF destinations changing the */
/* style from Styles.Printer to Styles.Minimal */
filename source 'c:\temp.sasxreg';
data _null_;
file source;
put'[ODS\DESTINATIONS\PRINTER]';
put' "Selected Style" = "styles.minimal"';
run;
proc registry import=source list startat="ODS\DESTINATIONS\PRINTER" ;
run;
ods preferences;
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
Type: | Sample |
Topic: | SAS Reference ==> ODS (Output Delivery System) Third Party ==> Output ==> HTML Third Party ==> Output ==> PDF Third Party ==> Output ==> RTF |
Date Modified: | 2010-04-07 15:09:50 |
Date Created: | 2009-02-25 15:37:18 |
Product Family | Product | Host | SAS Release | |
Starting | Ending | |||
SAS System | Base SAS | Windows Vista | 9.1 TS1M3 SP4 | |
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | |||
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | |||
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | |||
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | |||
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |||
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |||
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |||
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |||
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |||
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | |||
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | |||
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | |||
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | |||
z/OS | 9.1 TS1M3 SP4 | |||
64-bit Enabled AIX | 9.1 TS1M3 SP4 | |||
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | |||
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | |||
HP-UX IPF | 9.1 TS1M3 SP4 | |||
Linux | 9.1 TS1M3 SP4 | |||
Linux on Itanium | 9.1 TS1M3 SP4 | |||
OpenVMS Alpha | 9.1 TS1M3 SP4 | |||
Solaris for x64 | 9.1 TS1M3 SP4 | |||
Tru64 UNIX | 9.1 TS1M3 SP4 |