%LOG4SAS Autocall Macro

Initializes the logging environment to use autocall macros.
Category: Logging
Requirements: The MAUTOSOURCE system option must be set.
This macro must be invoked before any other logging autocall macro can be invoked.

Syntax

%LOG4SAS( )

Details

You invoke the %LOG4SAS autocall macro in order to initialize the logging environment for SAS programming. To ensure that the logging environment is initialized when SAS starts, you can invoke the %LOG4SAS autocall macro as follows:
  • in your autoexec file
  • as a statement that is specified in the INITSTMT system option, which can be placed in the SAS configuration file or on the SAS command line.
You can also invoke the %LOG4SAS autocall macro by placing it at the beginning of your SAS program.