Rexx - putenv


Advertisements

This method is used to set the value of an environment variable.

Syntax

putenv(‘name = value’) 

Parameters

  • name − The name of the environment variable.

  • value − The value of the environment variable.

Return Value

The existing value is returned if the environment variable has a value or if this environment variable is not defined, a nullstring is returned.

Example

/* Main program */ 
options arexx_bifs 
say putenv('JAVA_HOME = C:\') 

When we run the above program we will get the following result. The results depend from system to system.

Output

C:\Program Files\Java\jre7 
rexx_regina.htm
Advertisements