Calling a Macro
This section shows you how to call a macro. (To define a macro, see Defining a Macro).
To call a macro, use the following syntax where you want the macro to run within the parameter file.
Syntax
[target=]macro_name(val[, ...])
[target=]macro_name(val| {val,val, ...}[, ...])
Table 7-13 Syntax Elements for Calling a Macro
| Argument | Description |
|---|---|
|
|
Optional. Specifies the target to which the results of the macro are assigned or mapped. For example, DATECOL1 = #make_date (YR1, MO1, DAY1) Without a target, the syntax to call #make_date (YR1, MO1, DAY1) |
|
|
The name of the macro that is being called, for example: |
|
|
The parameter input values. This component is required whether or not the macro defines parameters. If the macro defines parameters, specify a comma-separated list of input values, in the order that corresponds to the parameter definitions in the |
|
|
The parameter input values. This component is required whether or not the macro defines parameters. If the macro defines parameters, specify a comma-separated list of input values, in the order that corresponds to the parameter definitions in the |