Chapter 10. Macro Programming

  • 10.1 What Is a Macro and Why Would You Use It? 352

  • 10.2 Motivation for Macros: Numerical Integration to Determine P(0<Z<1.645) 352

  • 10.3 Processing Macros 357

  • 10.4 Macro Variables, Parameters, and Functions 357

  • 10.5 Conditional Execution, Looping, and Macros 360

  • 10.6 Debugging Macro Code and Programs 367

  • 10.7 Saving Macros 374

  • 10.8 Functions and Routines for Macros 375

  • 10.9 Bonus Material: Processing Multiple Data Sets 379

  • 10.10 Summary 385

  • 10.11 References 385

  • 10.12 Exercises 385

10.1 What Is a Macro and Why Would You Use It?

The macro processor is a text processor that is built into SAS. You should familiarize yourself with the macro processor because with it, you can execute the same programs with minor modification. In this ...

Get Statistical Programming in SAS® 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.