Using Macros and Functions Together
- Last UpdatedOct 24, 2022
- 1 minute read
The existing mechanism for invoking a macro using $M continues to be available alongside the new PML functions. Most PML code in existing macros should continue to work unmodified.
To call a macro, even from within a PML function, use the $M command. Variables used as arguments to a macro must be STRING values. PML variables must be converted to a STRING with a preceding $:
$M filename $!X $!Y $!Z
Note:
To gain the full benefits of using PML functions, it is best not to mix macros and
functions extensively. Many of the advantages of PML functions depend on using variables
without $ which is not possible with arguments to macros.