CHAPTER 7

Writing Flexible Code with the SAS Macro Facility

Multiple Choice      

Short Answer      

Programming Exercises      

Multiple Choice

  1.   Which of the following is a valid macro variable name?

a.   01_01_1960

b.   _SP4EVR_

c.   Charlie'sPlace

d.   S.O.S.

  2.   If the following code is submitted and then followed by a PROC PRINT, what will be the resulting title in the output?

%LET title = The Amazing Race;

TITLE '&title';

a.   The Amazing Race

b.   &title

c.   title

d.   '&title'

  3.   If the following code is submitted and then followed by a PROC PRINT, what will be the resulting title in the output?

%LET title = The Amazing Race;

TITLE '&title';

a.   The Amazing Race

b.   &title

c.   title

d.   '&title'

  4.   If the following ...

Get Exercises and Projects for The Little SAS Book, Fifth 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.