NOMEXECNOTE is the default option. MEXECNOTE publishes a message about the execution of the macro. In the following macro, we have switched off a couple of other helpful options and have switched on MEXECNOTE:
OPTIONS MEXECNOTE NOSYMBOLGEN NOMPRINT;
%Macro Test_Log;
Data Test;
Set Class;
Run;
%Mend Test_Log;
%Test_Log;
This writes the following message to the LOG:
NOTE: The macro TEST_LOG is executing from memory.
5 instructions 80 bytes.
But does this mean that the note that was published confirms that the macro has executed successfully? Well, no. The system option doesn't go far enough ahead to confirm successful execution. We executed the macro in the following code block, where the reference to the Class_Alt dataset will produce an error as it does not exist in the work session. This option is less powerful than the MCOMPILENOTE option...