TEMPLATE Procedure: Creating Table Templates

DYNAMIC Statement

Defines a symbol that references a value that the data component supplies from the procedure or DATA step.
Restriction: The DYNAMIC statement can be used only in the template of a table, column, header, or footer. A dynamic variable that is defined in a template is available to that template and to all the templates that it contains.
See: Creating a Stand-Alone StyleUsing User-Defined Attributes

Syntax

DYNAMIC variable-1 <=default-variable-1><'text-1'>
<... variable-n <=default-variable-n><'text-n'>>;

Required Argument

variable
names a variable that the data component supplies. ODS resolves the value of the variable when it binds the template and the data component.
Tip:Dynamic variables are most useful to the authors of SAS procedures and to DATA step programmers.

Optional Arguments

default-variable
sets the default variable.
text
is text that is placed in the template to explain the dynamic variable's use. Text of this type becomes part of the compiled template, which you can view with the SOURCE statement, whereas SAS comments do not.