style=rowheader;
style=data{font_style=italic font_weight=bold color=purple};
end;
7 define VarValue;
print_headers=off;
format=7.3;
style=data{font_style=italic font_weight=bold color=blue};
end;
8 end;
9 run;
The following list corresponds to the numbered items in the preceding program:
1
The NODATE and NONUMBER options affect the Printer output. None of the
options affects the HTML output.
2
PROC TEMPLATE begins the procedure for creating a table.
3
The DEFINE statement creates the table template base.univariate.Measures in
SASUSER.
The base.univariate.Measures table template that SAS provides is stored in a
template store in the SASHELP library. (See Output 34.2 on page 670.)
4
The HEADER statement determines the order in which the table template uses the
headings, which are defined later in the program.
5
The COLUMN statement determines the order in which the variables appear. PROC
UNIVARIATE names the variables.
6
These DEFINE blocks define the three headings and specify the text to use for each
heading. By default, a heading spans all columns. This is the case for H1. H2 spans
the variables VarMeasure and VarValue. H3 spans LocMeasure and LocValue.
7
These DEFINE blocks specify characteristics for each of the four variables. They use
FORMAT= to specify a format of 7.3 for LocValue and VarValue. They also use
STYLE= to specify a bold, italic font for these two variables. The STYLE= option
does not affect the LISTING output.
8
The END statement ends the table template.
9
The RUN statement executes the procedure.
To view the table template that PROC TEMPLATE created, in the Templates window,
select Sasuser.Templat ð Base ð Univariate. By default, ODS searches for a table
template in SASUSER before SASHELP. When PROC UNIVARIATE calls for a table
definition by this name, ODS uses the one from SASUSER.
674 Chapter 34 • Understanding and Customizing SAS Output: The Output Delivery System (ODS)