Chapter Contents

Previous

Next
AUTOEXEC

AUTOEXEC



Specifies the autoexec file to be used

Default: autoexec.sas (see Details below)
Valid in: SAS invocation, SASV8_OPTIONS environment variable, configuration file
UNIX specifics: all


Syntax
Details
See Also

Syntax

-AUTOEXEC filename | -NOAUTOEXEC

-AUTOEXEC filename
specifies the autoexec file to be used. The filename must resolve to a valid UNIX pathname.

-NOAUTOEXEC
specifies that SAS is not to process any autoexec files.


Details

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 data libraries that you access routinely in SAS sessions.

The SAS System looks for this option on the command line, then in the environment variable SASV8_OPTIONS, and finally in the configuration file. It uses the first AUTOEXEC option it encounters.

If neither AUTOEXEC nor NOAUTOEXEC is specified, the SAS System searches three directories for an autoexec.sas file in the following order:

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 the SAS System.

See Also


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.