AUTOEXEC= System Option: z/OS

Specifies the SAS autoexec file.
Valid in: Configuration file, SAS invocation
Category: Environment Control: ENVFILES
PROC OPTIONS GROUP= ENVFILES
Default: None
z/OS specifics: file-specification

Syntax

AUTOEXEC=(file-specification1<. . . file-specification-n>) | NOAUTOEXEC

Required Arguments

file-specification
identifies an external file. Under z/OS, it can be a single ddname, a single MVS data set name, or a single UFS filename. If a ddname is used, it must have been previously associated with an external file using either a TSO ALLOCATE command or a JCL DD statement. Under TSO, file-specification can also be a list of MVS data set names that are enclosed in parentheses. For batch mode, use a SASEXEC DD statement instead of the AUTOEXEC option for multiple autoexec files.
NOAUTOEXEC
disables AUTOEXEC, as if the file-specification was blank.

Details

The autoexec file contains SAS statements that are executed automatically when you invoke SAS. The autoexec file can contain any SAS statements. For example, you can include LIBNAME statements for SAS libraries that you access routinely in SAS sessions.
During initialization, if AUTOEXEC= is not explicitly specified, SAS checks to see whether the SASEXEC ddname has been allocated. If so, SAS initializes AUTOEXEC= to SASEXEC. Otherwise, SAS sets the SASEXEC ddname to null.
You can use the APPEND= and INSERT= system options to add additional file specifications if all of the files are UFS files. For more information, see the APPEND= and INSERT= system options.