Sample 37480: Create a custom style that is available from the Style Manager pull-down menu in SAS® Enterprise Guide®
Many styles are shipped with SAS® 9.1.3 and SAS® 9.2; however, it is often the case that a uniform style is used by SAS programmers who would like their style to be available in the Style Manager pull-down menu. The following instructions describe how to store a style so that it is available to all client SAS Enterprise Guide applications for a single site.
The PROC TEMPLATE code must be run from a SAS session with administrative rights to the SASHELP library, and all other SAS sessions must be closed.
ods path sashelp.tmplmst(update);
proc template;
define style MYCORP;
parent=styles.sasdocprinter;
style header from header / foreground=orange;
end;
run;
From SAS Enterprise Guide, you can use the Style Manager to add the MYCORP style using the following steps:
- Select Tools ► Style Manager.
- In the Style Manager window, select the Add button.
- In the Add New Style window, select the Add new external style button and type in MYCORP for the Style name. Check the This is a SAS server style only checkbox.
- Click OK.
The following image shows the Add New Style window.
The style should now be available for you to use in SAS Enterprise Guide in the Style Manager window.
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.
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.
This sample illustrates how to create a custom style that is available from the
Style Manager pull-down menu in SAS® Enterprise Guide®.
| Date Modified: | 2010-04-16 11:11:03 |
| Date Created: | 2009-10-15 12:50:01 |
Operating System and Release Information
| SAS System | Base SAS | Microsoft® Windows® for x64 | 9.21 | | 9.2 TS2M0 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.21 | | 9.2 TS2M0 | |
| Microsoft Windows XP 64-bit Edition | 9.21 | | 9.2 TS2M0 | |
| 64-bit Enabled HP-UX | 9.21 | | 9.2 TS2M0 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.21 | | 9.2 TS2M0 | |
| Microsoft Windows XP Professional | 9.21 | | 9.2 TS2M0 | |
| 64-bit Enabled AIX | 9.21 | | 9.2 TS2M0 | |
| z/OS | 9.21 | | 9.2 TS2M0 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.21 | | 9.2 TS2M0 | |
| Windows Vista | 9.21 | | 9.2 TS2M0 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.21 | | 9.2 TS2M0 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.21 | | 9.2 TS2M0 | |
| Microsoft Windows Server 2003 Standard Edition | 9.21 | | 9.2 TS2M0 | |
| 64-bit Enabled Solaris | 9.21 | | 9.2 TS2M0 | |
| HP-UX IPF | 9.21 | | 9.2 TS2M0 | |
| Linux | 9.21 | | 9.2 TS2M0 | |
| Linux for x64 | 9.21 | | 9.2 TS2M0 | |
| OpenVMS on HP Integrity | 9.21 | | 9.2 TS2M0 | |
| Solaris for x64 | 9.21 | | 9.2 TS2M0 | |
| SAS System | SAS Enterprise Guide | Microsoft® Windows® for x64 | 4.2 | | 9.2 TS2M0 | |
| Microsoft Windows Server 2003 Datacenter Edition | 4.2 | | 9.2 TS2M0 | |
| Microsoft Windows Server 2003 Enterprise Edition | 4.2 | | 9.2 TS2M0 | |
| Microsoft Windows Server 2003 Standard Edition | 4.2 | | 9.2 TS2M0 | |
| Microsoft Windows XP Professional | 4.2 | | 9.2 TS2M0 | |
| Windows Vista | 4.2 | | 9.2 TS2M0 | |