Chapter 7. Writing Flexible Code with the SAS® Macro Facility

 

“Nobody is too old to learn—but a lot of people keep putting it off.”

 
 --WILLIAM O’NEILL

From The Official Explanations by Paul Dickson. Copyright 1980 by Delacorte Press. Reprinted by permission of the publisher.

7.1

Macro Concepts

200

7.2

Substituting Text with Macro Variables

202

7.3

Creating Modular Code with Macros

204

7.4

Adding Parameters to Macros

206

7.5

Writing Macros with Conditional Logic

208

7.6

Writing Data-Driven Programs with CALL SYMPUT

210

7.7

Debugging Macro Errors

212

Macro Concepts

Not so long ago the SAS macro facility was considered an advanced topic relevant only to experienced SAS users. Over time, however, macros have become more prevalent so that now even new SAS users would do ...

Get The Little SAS® Book: A Primer, Third 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.