See: “SASAUTOS System Option: UNIX” in SAS Companion for UNIX Environments
“SASAUTOS System Option: Windows” in SAS Companion for Windows
“SASAUTOS= System Option: z/OS” in SAS Companion for z/OS
Syntax
SASAUTOS= library-specification |
(library-specification-1, library-specification-2, …)
Required Arguments
library-specification
identifies a location that contains library members that contain a SAS macro
definition. A location can be a SAS fileref or a host-specific location name enclosed
in quotation marks. Each member contains a SAS macro definition.
(library-specification-1, library-specification-2, ...)
identifies two or more locations that contain library members that contain a SAS
macro definition. A location can be a SAS fileref or a host-specific location name
enclosed in quotation marks. When you specify two or more autocall libraries,
enclose the specifications in parentheses and separate them with either a comma or a
blank space.
Details
SAS automatically generates a fileref named SASAUTOS. This is the default value of
the SASAUTOS= option and points to all the SAS autocall macros. If the value of
SASAUTOS= is overwritten, then SAS no longer knows where to locate its own autocall
macros. When you specify the value of the SASAUTOS= system option, list the fileref
SASAUTOS first, followed by the location of other autocall libraries. This enables SAS
to locate the SAS autocall macros as well as any autocall macros that you have defined.
When SAS searches for an autocall macro definition, it opens and searches each location
in the same order that it is specified in the SASAUTOS option. If SAS cannot open any
specified location, it generates a warning message and sets the NOMAUTOSOURCE
system option on. To use the autocall facility again in the same SAS session, you must
specify the MAUTOSOURCE option again. Also see “MRECALL System Option” on
page 378, which searches the autocall libraries for an undefined macro name each time
an attempt is made to invoke the macro.
Note: When searching the list of library specifications for an autocall macro definition,
SAS silently ignores library access failures due to insufficient access privileges and
continues to search through the list of library specifications.
Operating Environment Information
You specify a source library by using a fileref or by enclosing the host-specific
location name in quotation marks. A valid library specification and its syntax are
host specific. Although the syntax is generally consistent with the command-line
syntax of your operating environment, it might include additional or alternate
punctuation. For more information, see the SAS documentation for your operating
environment.
z/OS Specifics
You can use the APPEND or INSERT system options to add additional library-
specification. For more information, see the documentation for the APPEND and
INSERT system options under UNIX and z/OS.
SASAUTOS= System Option 383