Macro Language Dictionary

MCOMPILENOTE System Option



Issues a NOTE to the log upon the completion of the compilation of a macro
Type: System option
Valid in:

Configuration file

OPTIONS window

OPTIONS Statement

SAS invocation

Default: NONE
PROC OPTIONS GROUP= MACRO

Syntax
Details
Examples

Syntax

MCOMPILENOTE=<NONE | NOAUTOCALL | ALL>

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 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 the you intended.


Examples

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 your macro;

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.

space
Previous Page | Next Page | Top of Page