System Options under UNIX |
Specifies the SAS autoexec file.
Default: |
autoexec.sas
(see Details)
|
Valid in: |
configuration file, SAS invocation, SASV9_OPTIONS
environment variable
|
Category: |
Environment control: Files
|
PROC OPTIONS GROUP= |
ENVFILES
|
UNIX specifics: |
all
|
-AUTOEXEC file-specification | -NOAUTOEXEC
|
-
-AUTOEXEC
file-specification
-
specifies the SAS autoexec file. The file-specification must resolve to a valid UNIX
pathname.
-
-NOAUTOEXEC
-
specifies that SAS is not to process any
autoexec files.
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 this option in the following order:
-
in the command line
-
in
the SASV9_OPTIONS environment variable
-
in the configuration file
It uses the first AUTOEXEC option it encounters and ignores
all others.
If neither AUTOEXEC nor NOAUTOEXEC is specified, SAS
searches three directories for an autoexec.sas file in the following order:
-
your current directory
-
your home
directory
-
the !SASROOT
directory (see The !SASROOT Directory)
SAS uses the first file it
finds to initialize the session.
If you want to see the contents of the autoexec file
for your session, use the ECHOAUTO system option when you invoke
SAS.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.