Previous Page | Next Page

System Options for Macros

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 file

OPTIONS window

OPTIONS Statement

SAS invocation

Type: System option
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. 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.


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.

Previous Page | Next Page | Top of Page