This method is used to set the value of an environment variable.
putenv(‘name = value’)
name − The name of the environment variable.
value − The value of the environment variable.
The existing value is returned if the environment variable has a value or if this environment variable is not defined, a nullstring is returned.
/* 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.