The lower part of the SAS GUI is a log pane, which records commands and messages. Each time a task is executed from the GUI, an equivalent command-line is written to the log. These lines have the prefix `@@', so that they may be easily identified. The `File' menu has an option to extract the commands and save them as an executable script. It is possible to edit the script and replace some file names by command-line arguments, so that the script can be run on different data.
The log also records warnings and error messages, received from the task. These are prefixed with `**', so that they are clearly visible. Other output from the task (written to STDOUT) is logged without any prefix.
As well as being displayed in the SAS window, the log is also written to the file `sas_log', in the directory from which the GUI was invoked.
The log may not only be printed using the `Print log...' command on the `File' menu, but also saved as a script for further use by the `Save as script' option in the same menu.