Part 3 Dynamic Macro Coding Techniques

Chapter 11 Writing dynamic Programs

Chapter 12 Examples of Dynamic Programs

A dynamic program is one, which by necessity, is not completely defined prior to execution. Many, if not most, SAS programs are static and the programmer determines through the use of DATA step and PROC step statements the order and logic of execution. In static programs, when the programmer knows about data exceptions and special cases, he or she must hardcode logic to handle them. Dynamic programs, on the other hand, may use the analysis data itself, control data, or even information gathered from the operating environment to determine the path and logic of execution. The programmer who writes dynamic programs has the ability to ...

Get Carpenter's Complete Guide to the SAS Macro Language, Third Edition, 3rd 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.