Chapter Contents

Previous

Next
AUTOEXEC=

AUTOEXEC=



Specifies the autoexec file that is used when the SAS System is initialized

Language element: system option
Default: SAS$INIT, if SAS$INIT is defined, otherwise no default
Valid in: configuration file, SAS invocation, VMS_SAS_OPTIONS DCL symbol
OpenVMS specifics: valid values for file-specification; syntax


Syntax
Details
See Also

Syntax

AUTOEXEC=file-specification
NOAUTOEXEC

AUTOEXEC=file-specification
specifies an autoexec file to use instead of any existing process-level SAS$INIT file. Even if SAS$INIT is defined in your process-level logical name table, it is ignored. However, system-, group-, and job-level autoexec files are still processed if they exist.

The file specification can be an OpenVMS pathname or logical name. If you do not supply a file type, the type .SAS is assumed.

NOAUTOEXEC
indicates that no process-level autoexec file is processed even if one exists. If no process-level logical name SAS$INIT exists, NOAUTOEXEC is the default. The system-, group-, and job-level autoexec files are still processed if they exist.

Note:   For Version 8, in PROC OPTIONS, this system option is listed as AUTOEXEC= rather than NOAUTOEXEC as it was in Version 6.  [cautionend]


Details

The AUTOEXEC= system option specifies the autoexec file. The autoexec file contains SAS statements that are executed automatically when you invoke the SAS System 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 data libraries you access routinely in SAS sessions.

System-, group-, and job-level SAS$INIT files are processed regardless of the value of the AUTOEXEC= system option and regardless of whether the process-level SAS$INIT logical name exists.

In Version 8 of the SAS System, whenever any level of SAS$INIT is processed as an AUTOEXEC file, the value of AUTOEXEC= from PROC OPTIONS is AUTOEXEC=SAS$AUTO. To see which files are actually processed as autoexecs, issue the following SAS statement:

x 'show logical SAS$AUTO';

Note:   Although SAS$INIT is the OpenVMS logical name that is used to specify one or more autoexec files, SAS$AUTO is returned from PROC OPTIONS when SAS$INIT is processed at any level.  [cautionend]

See Also


Chapter Contents

Previous

Next

Top of Page

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