About the Tasks That You Will Perform

Once you have specified the ODS statements that you need to generate the appropriate output type, you can add options to those statements to customize the presentation of your output. The quickest way to make a change to all of your output at once is to specify the STYLE= option in the ODS destination statement.
You can view all styles that are provided by SAS in the Templates window. To open the Templates window, do one of the following:
  • Select Results in the Results window, and then select Viewthen selectTemplates from the taskbar.
  • Right-click Results in the Results window, and then select Templates.
  • Issue the following command on the command line in the SAS windowing environment:
    odstemplates
To view the styles provided by SAS, select Templatesthen selectSashelp.Tmplmstthen selectStyles.
SAS Styles
SAS Styles
By default (for DMS), ODS uses the HTMLBlue style for HTML output, the RTF style for RTF output, and the default Printer style for PDF output. The default style for each ODS destination can be viewed in the SAS Registry Editor. For the following examples, the Science style is used to ensure that the look of the presentation is consistent. To view the source of the Science style in the Template Browser window, do one of the following:
  • Double-click the Science style.
  • Right-click Science, and then select Open.
Source of Science Style Viewed in the Template Browser Window
Source of Science Style Viewed in the Template Browser Window
You can customize specific areas of some procedure output by specifying the STYLE= option in specific procedure statements. With the STYLE= option, you can change the attributes of cells. Changes include aligning text, adding URLs, changing rules, and changing the size, width, and color of a font.
The STYLE= option is specified in slightly different ways for individual procedure statements. However, the general form of the STYLE= option for a procedure statement is:
STYLE=<style-attribute-name=style-attribute-value>
The procedures that allow direct style control are PROC PRINT, PROC REPORT, and PROC TABULATE. For documentation on these procedures, see the Base SAS Procedures Guide.