Quiz

Select the best answer for each question. After completing the quiz, check your answers using the answer key in the appendix.
  1. Which of the following is false?
    1. A %MACRO statement must always be paired with a %MEND statement.
    2. A macro definition can include macro variable references, but it cannot include SAS language statements.
    3. Only macro language statements are checked for syntax errors when the macro is compiled.
    4. Compiled macros are stored in a temporary SAS catalog by default.
  2. Which of the following examples correctly defines a macro named Print that implements parameters named vars and total?
    1. %macro print(vars, total);
         proc print data=classes;
            var vars;
            sum total;
         run;
      %mend print;
    2. %macro print('vars', ...

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.