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 O’Reilly online learning.

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