The ALTLOG system option
specifies a destination to which a copy of the SAS log is written.
All messages that are written to the SAS log are also written to the
location specified in
file-specification.
You can use this option to capture log output for printing.
Note: You can use the LOG option
in the PRINTTO procedure to redirect any portion of the log to an
external file. The code for PROC PRINTTO will not appear in the SAS
log for the current session, but it will appear in the SAS log that
you created with the ALTLOG system option.
Note: When SAS is started with
the OBJECTSERVER and NOTERMINAL system options and no log is specified,
SAS discards all log and alternate log messages.