The AUTOEXEC system
option specifies the autoexec file. The autoexec file contains SAS
statements that are executed automatically when you invoke SAS, or
when you start another SAS process. The autoexec file can contain
any SAS statements. For example, your autoexec file can contain LIBNAME
statements for SAS libraries that you access routinely in SAS sessions.
SAS looks for the AUTOEXEC
system option in the following order. It uses the first AUTOEXEC system
option that it finds:
-
-
in the SASV9_OPTIONS
environment variable
-
in the configuration
file
SAS uses the first AUTOEXEC
option that it encounters and ignores all others.
If neither the AUTOEXEC
nor NOAUTOEXEC system option is found, SAS looks for the autoexec
file in three directories in the following order:
-
-
-
SAS uses the first autoexec
file that it finds to initialize the SAS session.
If you want to see the
contents of the autoexec file for your session, use the ECHOAUTO system
option when you invoke SAS. If you want to identify the data sources
that the autoexec file is using, use the PROC OPTIONS statement:
proc options option=autoexec value;
run;