MCOMPILENOTE System Option

Issues a NOTE to the SAS log. The note contains the size and number of instructions upon the completion of the compilation of a macro.
Valid in: Configuration fileOPTIONS windowOPTIONS StatementSAS invocation
PROC OPTIONS GROUP= MACRO
Type: System option
Default: NONE

Syntax

MCOMPILENOTE=<NONE | NOAUTOCALL | ALL>

Required Arguments

NONE
prevents any NOTE from being written to the log.
NOAUTOCALL
prevents any NOTE from being written to the log for AUTOCALL macros, but does issue a NOTE to the log upon the completion of the compilation of any other macro.
ALL
issues a NOTE to the log. The note contains the size and number of instructions upon the completion of the compilation of any macro.

Details

The NOTE confirms that the compilation of the macro was completed. When the option is on and the NOTE is issued, the compiled version of the macro is available for execution. A macro can successfully compile, but still contain errors or warnings that will cause the macro to not execute as you intended.

Example: Using MCOMPILENOTE System Option

A macro can actually compile and still contain errors. Here is an example of the NOTE without errors:
option mcompilenote=noautocall;
%macro mymacro;
%mend mymacro;
Output to the log:
NOTE: The macro MYMACRO completed compilation without errors.
Here is an example of the NOTE with errors:
%macro yourmacro;
%end;
%mend yourmacro;
Output to the log:
ERROR: There is no matching %DO statement for the %END statement.
       This statement will be ignored.
NOTE: The macro YOURMACRO completed compilation with errors.