Multiple choice technology programming languages

Which of the following statement is true

  1. Referencing a nonexistent macro variable results in a warning message. Referencing an invalid macro variable name results in an error message.

  2. Referencing a nonexistent macro variable results in a error message. Referencing an invalid macro variable name results in an warning message.

  3. Referencing a nonexistent macro variable and invalid macro variable name results in an error message.

  4. Referencing a nonexistent macro variable and invalid macro variable name results in an warning message.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In SAS, referencing a nonexistent macro variable generates a warning in the log, and the reference is left unresolved. However, referencing an invalid macro variable name (which violates SAS naming rules, such as starting with a number) violates syntax rules and results in a compilation error.