• Print  |
  • Feedback  |

TEMPLATE Procedure: Declaration Statements (Experimental)

MVAR Statement


Defines a symbol that references a character macro variable.
MVAR variable-1 <'text-1'> <... variable-n <'text-n'>>;


Usage Information

Restriction:

You can use the MVAR statement in the definition of a table, column, header, footer, or an ODS statistical graph. A macro variable that is defined in a definition is available to that definition.

Tip:

ODS uses the value of the variable as a string. References to the macro variable are resolved when ODS binds the definition and the data component to produce an output object.


Required Arguments

variable

names a character macro variable to reference in the definition. ODS uses the value of the macro variable as a string. ODS does not resolve the value of the macro variable until it binds the definition and the data component.

Requirement: You must declare macro variables in a definition by using the MVAR statement. For example, to use the automatic macro variable SYSDATE9 in a definition, declare it in an MVAR statement and reference it as SYSDATE9, without an ampersand, in your PROC TEMPLATE step. If you use the ampersand, the macro variable resolves when the definition is compiled instead of when ODS binds the definition to the data component.

Options

text

is text that you can place in the definition to explain the macro variable's use. Text of this type becomes part of the compiled definition, which you can view with the SOURCE statement, whereas SAS comments do not become part of the definition.

Requirement: You must enclose the text in quotation marks.


Previous Page | Next Page | Top of Page