You can end your SAS session using several methods,
including:
-
selecting
Close from
the control menu of the main SAS window
-
selecting
Cancel in
the Status window. This window appears when you are running in batch
mode.
-
double-clicking on the control
menu of the main SAS window, or clicking on the
X in
the upper right corner of the main SAS window
-
issuing the BYE or ENDSAS command
from a SAS command line
-
submitting an ENDSAS statement
-
closing the SAS session from the
Task List by selecting the session process (the process name differs
depending on how you started SAS) and selecting
End Task
-
selecting
Exit SAS from
the File menu in the main SAS window menu bar
-
selecting
Exit from
the File pop-up menu
-
pressing the ALT+F4 accelerator-key
combination that is defined by Windows.
If SAS terminates with
errors the SAS log might contain error messages that explain the failure.
Any error message that SAS issues before the SAS log is initialized
are written to the
MSG window if it is available
or to the SAS console log, which is a Windows file. Under Windows
Vista, or newer Windows operating environments, the Windows SAS console
log is typically located in
c:\Users\
user
ID\AppData
. Under
older Windows operating environments, the SAS console log is typically
located in
c:\Documents and Settings\
user
ID\Application Data
.
You can obtain the location and filename for the SAS console log
from the Application Event Log. To open the application Event Log,
submit
eventvwr
from the
Run dialog
box and under Windows Vista or newer operating environments, expand
the
Windows Logs category and click
Application. Under
older Windows operating environments, click
Application.