Chapter Contents

Previous

Next
SET

SET



Defines an environment variable

Default: none
Valid in: SAS invocation, SASV8_OPTIONS environment variable, configuration file
UNIX specifics: all


Syntax
Details
See Also

Syntax

-SET variable-name value


Details

The SET option lets you define an environment variable that is valid within the SAS session and any shell started from within the SAS session. Using the SET option is similar to using the SAS setenv command. See Executing Operating System Commands from Your SAS Session for details .

A special use for the SET option is to specify the name of the SASROOT directory:

-set SASROOT pathname
The pathname specified can then be used to expand !SASROOT (as shown in Character Substitutions in Pathnames).

After exiting your SAS session, environment variables that are set with the SET option no longer exist.

See Also


Chapter Contents

Previous

Next

Top of Page

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