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 defines and resolves parameters named vars and total?
    1. %macro print(vars, total);
         proc print data=classes;
            var vars;
            sum total;
      %mend print;

Get SAS Certified Professional Prep Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.