Autocall Macro Reference |
SAS supplies a set of autocall macros that you can use in your SAS programs to log messages by using the SAS logging facility. SAS writes the SAS language logging facility messages to a file using the appender, FileRefAppender. FileRefAppender is the only logging facility appender that is available in the SAS language.
You use the following autocall macros to log messages by using the logging facility:
initializes the autocall macro logging environment.
defines an appender, which names the destination of the log message, a message layout, and a message threshold.
defines a logger, which defines a message category for log messages and the appenders that are associated with the message category.
is the log event that you use to write debug messages.
is the log event that you use to write trace messages.
is the log event that you use to write warning messages.
is the log event that you use to write informational messages.
is the log event that you use to write error messages.
is the log event that you use to write fatal messages.
In order to use the logging facility autocall macros, you must set the MAUTOSOURCE system option in order to activate the autocall facility. The MAUTOSOURCE system option is set by default.
For more information about autocall macros and the MAUTOSOURCE system option, see "Selected Autocall Macros Provided with SAS Software" and "MAUTOSOURCE System Option" in SAS Macro Language: Reference.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.