Details
Several conditions can occur that prevent a macro variable reference from resolving.
These conditions appear when one or more of the following is true:
• the name in a macro variable reference is misspelled.
• the variable is referenced before being defined.
• the program contains an ampersand ( &) followed by a string, without intervening
blanks between the ampersand and the string. For example:
if x&y then do;
if buyer="Smith&Jones, Inc." then do;
If your program uses a text string containing ampersands and you want to suppress the
warnings, specify NOSERROR.
SYMBOLGEN System Option
Specifies whether the results of resolving macro variable references are written to the SAS log for
debugging.
Valid in: Configuration file, OPTIONS window, OPTIONS statement, SAS invocation
Category: Macro
PROC OPTIONS
GROUP=
MACRO
LOGCONTROL
Type: System option
Alias: SGEN | NOSGEN
Default: NOSYMBOLGEN
See: “The SAS Log” in SAS Language Reference: Concepts
Syntax
SYMBOLGEN | NOSYMBOLGEN
Required Arguments
SYMBOLGEN
displays the results of resolving macro variable references. This option is useful for
debugging.
NOSYMBOLGEN
does not display results of resolving macro variable references.
Details
SYMBOLGEN displays the results in this form:
SYMBOLGEN: Macro variable name resolves to value
SYMBOLGEN also indicates when a double ampersand (&&) resolves to a single
ampersand (&).
SYMBOLGEN System Option 385