Chapter 9: Introducing Macro Variables
-
Correct answer: bMacro variables are always text strings that are independent of SAS data sets. The value of a macro variable can be up to 65,534 characters long, and the name of a macro variable can be up to 32 characters long. A macro variable can be defined or referenced anywhere in a SAS program except within data lines. There are two types of macro variables: automatic and user-defined.
-
Correct answer: cTo reference a macro variable, you precede the name with an ampersand. You do not need to enclose the macro variable reference in quotation marks.
-
Correct answer: aThere are two ways to display the value of a macro variable in the SAS log: you can turn on the SYMBOLGEN system option ...
Get SAS Certification Prep Guide, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.