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

Get SAS Certified Professional Prep Guide 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.