Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > The Clib Object Uncategorized Methods > Clib.putenv() MethodThis method creates an environment variable, sets the value of an existing environment variable, or removes an environment variable. SyntaxClib.putenv(varName, stringValue) Returns0 if successful; otherwise, -1. UsageThis 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, a previously existing variable reverts to its pre-script value. A variable created by Clib.putenv() is destroyed automatically. ExampleThe following script creates an environment variable and assigns it a value. It then traces the return value to confirm that the variable was created. TheApplication().TraceOn("c:\\eScript_trace.txt","allocation","all"); The script produces the following trace output. 03/05/04,16:56:28,START,7.5.3 [16157] LANG_INDEPENDENT,SADMIN,3388,7448 See Also |
Siebel eScript Language Reference |