System Options for Macros |
Valid in: |
| ||||
Type: | System option | ||||
Default: | NONE | ||||
PROC OPTIONS GROUP= | MACRO |
Syntax | |
Details | |
Examples |
Syntax |
MCOMPILENOTE=<NONE | NOAUTOCALL | ALL> |
prevents any NOTE from being written to the log.
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.
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.
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.