Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object Uncategorized Methods >

Clib.putenv() Method


This method creates an environment variable, sets the value of an existing environment variable, or removes an environment variable.

Syntax

Clib.putenv(varName, stringValue)

Parameter
Description

varName

The name of an environment variable

stringValue

The value to be assigned to the environment variable

Returns

0 if successful; otherwise, -1.

Usage

This method sets the environment variable varName to the value of stringValue. If stringValue is null, then varName is removed from the environment.

The environment variable change persists only while the Siebel eScript code and its child processes are executing. After execution, the variable is destroyed automatically.

See Also

Clib.getenv() Method

Siebel eScript Language Reference