TEMPLATE Procedure: Creating a Style Template

DEFINE STYLE Statement

Creates a style for any destination that supports the STYLE= option. The DEFINE STYLE statement begins a DEFINE STYLE statement block.
Requirement: An END statement must be the last statement in the template.
Supports: The DEFINE STYLE statement supports the following statements: CLASS Statement, IMPORT Statement, NOTES Statement, PARENT= Statement, and STYLE Statement.
Creating a Stand-Alone Style

Syntax

DEFINE STYLE style-path | Base.Template.Style </ STORE=libref.template-store>;
PARENT=style-path;
NOTES "text";
CLASS style-element-name(s)<"text">
</ style-attribute-specification(s)>;
IMPORT style-specification<media-type-1<, , media-type-10>>;
STYLE style-element-name(s) <FROM style-element-name | _SELF_ > <"text">
</ style-attribute-specification(s)>;

Required Arguments

style-path
specifies where to store the style. A style-path consists of one or more names, separated by periods. Each name represents a directory in a template store. PROC TEMPLATE writes the style to the first writable template store in the current path.
Base.Template.Style
creates a style that is the parent of all styles that do not explicitly specify a parent. After this template is created, you do not need to explicitly specify it in your SAS programs. It is automatically applied to all output until you specifically remove it from the item store.
CAUTION:
The Base.Template.Style supplied by SAS contains inheritance information used by many styles. If this inheritance information is not retained, some style elements might not appear in the output. To safely create your own Base.Template.Style, you can start with the existing Base.Template.Style template by writing it to an external file and editing the existing template contents.
Restriction:If the PARENT= statement is specified, then PARENT= must refer to a style other than Base.Template.Style.
Interaction:The Base.Template.Style master template attributes are overridden by other style templates.
Tip: To view an existing style to base your own Base.Template.Style on, see Viewing the Contents of a Style.

Optional Argument

STORE=libref.template-store
specifies the template store in which to store the style. If the template store does not exist, then it is created.
Restriction:The syntax of the STORE= option does not become part of the compiled template.