• Print  |
  • Feedback  |

TEMPLATE Procedure: Declaration Statements (Experimental)

NMVAR Statement


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


Usage Information

Restriction:

You can use the NMVAR 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 will convert the variable's value to a number (stored as a double) before using it. 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 macro variable to reference in the definition. ODS converts the variable's value to a number (stored as a double) before using it. ODS does not resolve the macro variable until it binds the definition and the data component.

Requirement: You must declare macro variables in a definition by using the NMVAR statement. For example, to use a macro variable as a number, declare it in an NMVAR statement and reference it without an ampersand. 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 compiled definition.

Requirement: You must enclose the text in quotation marks.


Previous Page | Next Page | Top of Page