A. Terminal Monitor : Terminal Monitor Macros : Macro Parameters
 
Share this page                  
Macro Parameters
A macro can have parameters. A parameter can be:
A single word
A string delimited with quotes (' ')
Another macro
A parameter is terminated by a semicolon, space, tab, newline, or the end of the template (right brace }) that follows the parameter.
In the template descriptor for {define}:
{define;$t;$r}
The first parameter t ends at the first semicolon.
The second parameter r ends at the first right brace.
For example:
{define;x;SELECT * FROM iitables}
System macros (see page  355) are always surrounded by braces and can be nested, as in the macro definition:
{define;x;{read data:}}
The first right brace closes the {read} macro; the second right brace closes the {define} macro.