Difference between revisions of "PUTENV()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
− | Function to update the value of an environment | + | Function to update the value of an environment variable |
− | + | ||
==Syntax== | ==Syntax== | ||
PUTENV(<expC1>,<expC2>) | PUTENV(<expC1>,<expC2>) | ||
− | |||
==See Also== | ==See Also== | ||
− | [[ADDBS()]], [[GETENV()]] | + | [[ADDBS()]], [[GETENV()]] |
− | + | ||
==Description== | ==Description== | ||
− | The PUTENV() function updates the value of <expC1> with the character expression <expC2>. The value of the | + | The PUTENV() function updates the value of <expC1> with the character expression <expC2>. The value of the variable can be retrieved using the GETENV() function. If variable <expC1> does not exist, it is created. If the operation is successful, then PUTENV() returns .T., otherwise .F.. |
− | + | ||
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | + | putenv("APP_USER",user()) | |
− | putenv(" | + | |
− | + | ||
− | + | ||
− | + | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Environment]] | [[Category:Environment]] | ||
[[Category:Environment Functions]] | [[Category:Environment Functions]] |
Revision as of 12:13, 10 February 2012
Contents
Purpose
Function to update the value of an environment variable
Syntax
PUTENV(<expC1>,<expC2>)
See Also
Description
The PUTENV() function updates the value of <expC1> with the character expression <expC2>. The value of the variable can be retrieved using the GETENV() function. If variable <expC1> does not exist, it is created. If the operation is successful, then PUTENV() returns .T., otherwise .F..
Example
putenv("APP_USER",user())