Peter Knapp |
One of the golden rules when running SAS® programs is to review the Log for problems. Unfortunately,
many users ignore the Log and focus on the output. Adding a dynamically generated report to the bottom
of the Log that shows the number of problems (such as run-time errors, missing values, and uninitialized
variables) is a great way to identify issues with the program run that need addressing. Enhancing the
report to include information about the number of observations flowing through the program can not only
help ensure that the program runs without mechanical errors, but also runs as expected. This
presentation discusses a Log Report macro that provides summary log information, explains how it works,
and details how to modify it so you can tailor it for your organization's specific needs. I developed this Log
Report using SAS® Enterprise Guide® on a Windows environment using SAS macro and Base SAS
code. The Log Report also works in SAS® Studio. |