About CheckLog

SAS Global Forum 2012 Attendees

Please visit this page for more information about the following papers:
  • An Advanced, Multi-Featured Macro Program for Reviewing Logs
  • Standardized Macro Programs for Macro Variable Manipulation
The CheckLog macro reviews the current SAS log, external logs, or a directory of logs for issues, including lines with error, warning, invalid, or uninitialized messages. Further, additional messages have been identified that can be associated with issues, and some messages are ignored. CheckLog has several additional arguments for managing input, notifications, and how the macro operates.

Feel free to contact me if you have any questions or feedback regarding CheckLog.


  • Check the current log*, an external log, or a directory of logs, including subdirectories (requires the DirList macro program).
  • Set the extension that is used in directory mode.
  • Add keywords to the search.
  • Exclude specific phrases, stored in a permanent data set.
  • Notify users by pop-up message, sound, or email.
  • Include additional detail in notifications.
  • Recreate the log in the current interactive SAS session by overwriting the current log with the imported log.
  • Abort the current SAS session when issues are found.
  • Execute the macro from a keyboard shortcut or via a Windows icon or context menu (see Scripts page).
  • Support for UNIX, z/OS, OpenVMS, and Windows.

See the Arguments page for more details.

* In Enterprise Guide, CheckLog cannot export the current log. See the Enterprise Guide page for more details.


Enterprise Guide

SAS Enterprise Guide Users: Please visit the Enterprise Guide page for more documentation about using CheckLog.


Subscribe to updates to the CheckLog macro.


Note: CheckLog can be run on SAS 9.1.3 or newer. For scripts, review the Scripts page for full instructions.

Use Now

The following code will allow users to run the CheckLog macro immediately in the current SAS session.

/* Download and Compile CheckLog */
filename code url "http://goo.gl/H2zu9";
%include code / nosource;
filename code clear;