SETENV (Unix and Windows Only)

The SETENV procedure adds or changes an environment string in the process environment.

Calling Sequence

SETENV, Environment_Expression

Arguments

Environment_Expression

A scalar string containing an environment expression to be added to the environment.

Example

Change the current shell variable by entering:

SETENV,'SHELL=/bin/sh'

Make sure to elimate any whitespace around the equal sign:

SETENV, 'VAR = H:\rsi' ; This is an incorrect usage; there are spaces around the equal sign.

SETENV, 'VAR=H:\rsi'; This is correct; VAR is set to H:\rsi.

See Also

DELLOG (VMS Only) , GETENV , SETLOG (VMS Only)