AUTOEXEC System Option: Windows

Specifies the SAS autoexec file.
Valid in: configuration file, SAS invocation
Category: Environment control: Files
PROC OPTIONS GROUP= ENVFILES
Default: AUTOEXEC.SAS, if the file is available; otherwise, none
Windows specifics: file-specification must be a valid Windows filename

Syntax

-AUTOEXEC file-specification
-NOAUTOEXEC

Required Arguments

AUTOEXEC (file-specification1<...file-specification-n>)
specifies the SAS autoexec file to be used instead of the default AUTOEXEC.SAS file. The file-specification argument can be a valid Windows filename or an environment variable associated with a pathname. For more information about the SAS autoexec file, see “SAS Autoexec File” in the “Getting Started” section in SAS Companion for Windows.
NOAUTOEXEC
indicates that no SAS autoexec file is processed, even if one exists.

Details

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 valid SAS statements. For example, you can include LIBNAME statements for SAS libraries that you access routinely in SAS sessions.
If no AUTOEXEC.SAS file is found, the default value for this option is NOAUTOEXEC.
You can use the APPEND and INSERT system options to add additional file specifications.

See Also

APPEND= System Option in SAS System Options: Reference
INSERT= System Option in SAS System Options: Reference