Chapter Contents

Previous

Next
The TEMPLATE Procedure

DEFINE Statement


Creates a definition for a table, column, header, footer, or style.

Requirement: An END statement must be the last statement in the definition.
Interaction: In some cases, you can use a DEFINE statement inside a definition.
A table definition can contain one or more column, header, or footer definitions.
A column definition can include one or more header definitions.
See also: DEFINE COLUMN Statement, DEFINE HEADER Statement, DEFINE STYLE Statement, and DEFINE TABLE Statement


DEFINE definition-type definition-path< / STORE=libname.template-store>;
statements-and-attributes
END;


Required Arguments

definition-type
specifies the type of definition to create, where definition-type is one of the following:
COLUMN STYLE
FOOTER TABLE
HEADER
The definition-type determines what other statements and what attributes can go in the definition. For details, see the documentation for the corresponding DEFINE statement.

definition-path
specifies where to store the definition. A definition-path consists of one or more names, separated by periods. Each name represents a directory, or level, in a template store. (A template store is a type of SAS file.) PROC TEMPLATE writes the definition to the first template store that you can write to in the current template-store path.

Restriction: If the definition is nested inside another definition, definition-path must be a single-level name.
Restriction: If you want to reference the definition that you are creating from another definition, do not nest the definition inside another one. For example, if you want to reference a header definition from multiple columns, do not define the header inside a column definition.
See also: For information on setting the current path, see PATH Statement.


Options

STORE=libname.template-store
specifies the template store in which to store the definition. If the template store does not exist, it is created.
Restriction: If the definition is nested inside another definition, you cannot use the STORE= option.
Availability: Version 8 of the SAS System

END Statement


Ends the definition.

END;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.