Skip to Main Content
Statistical Programming in SAS
book

Statistical Programming in SAS

by John Bailer
April 2015
Intermediate to advanced content levelIntermediate to advanced
460 pages
14h 45m
English
SAS Institute
Content preview from Statistical Programming in SAS
Chapter 10: Macro Programming 367
Now, the claim could be made that this code matches the first attempt at constructing this
macro. Alas, the truth is that debugging and error correction are required. Basic strategies
for exploring and debugging errors in macro coding are addressed in the next section.
10.6 Debugging Macro Code and Programs
The first thing to do with non-working macro code is to write out the values of the macro
variables. You can write to the log the value of a macro variable that you have defined
using the statement %PUT &MACRO-VAR-NAME. You can display SAS automatic
macro variables (%PUT _AUTOMATIC_), user-defined macro ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Elementary Statistics Using SAS

Elementary Statistics Using SAS

Sandra D. Schlotzhauer

Publisher Resources

ISBN: 9781607645047