The CMDMAC system option
controls whether macros defined as command-style macros can be invoked
with command-style macro calls or if these macros must be invoked
with name-style macro calls. These two examples illustrate command-style
and name-style macro calls, respectively:
-
macro-name parameter-value-1 parameter-value-2
-
%macro-name(parameter-value-1, parameter-value-2)
When you use CMDMAC,
processing time is increased because the macro facility searches the
macros compiled during the current session for a name corresponding
to the first word on the command line. If the MSTORED option is in
effect, the libraries containing compiled stored macros are searched
for a name corresponding to that word. If the MAUTOSOURCE option is
in effect, the autocall libraries are searched for a name corresponding
to that word. If the MRECALL system option is also in effect, processing
time can be increased further because the search continues even if
a word was not found in a previous search.
Regardless of which
option is in effect, you can use a name-style invocation to call any
macro, including command-style macros.