The IMPLMAC system option
controls whether macros defined as statement-style macros can be invoked
with statement-style macro calls or if these macros must be invoked
with name-style macro calls. These examples illustrate statement-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 IMPLMAC,
processing time is increased because SAS searches the macros compiled
during the current session for a name corresponding to the first word
of each SAS statement. 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 call any macro with a name-style invocation,
including statement-style macros.
Note: If a member in an autocall
library or stored compiled macro catalog has the same name as an existing
windowing environment command, SAS searches for the macro first if
CMDMAC is in effect. Unexpected results can occur.