Using Macros and Functions Together
- Last UpdatedNov 10, 2025
- 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.