MERROR System Option

Specifies whether the macro processor issues a warning message when a macro reference cannot be resolved.
Valid in: Configuration fileOPTIONS windowOPTIONS statementSAS invocation
PROC OPTIONS GROUP= MACRO
Type: System option
Default: MERROR

Syntax

MERROR | NOMERROR

Required Arguments

MERROR
issues the following warning message when the macro processor cannot match a macro reference to a compiled macro:
WARNING: Apparent invocation of macro %text not resolved.
NOMERROR
issues no warning messages when the macro processor cannot match a macro reference to a compiled macro.

Details

Several conditions can prevent a macro reference from resolving. These conditions appear when
  • a macro name is misspelled
  • a macro is called before being defined
  • strings containing percent signs are encountered. For example:
    TITLE Cost Expressed as %Sales;
If your program contains a percent sign in a string that could be mistaken for a macro keyword, specify NOMERROR.