Sets the contents of specified environment variable to the value given.
            
 
    Namespace: 
   MicroFocus.COBOL.RuntimeServices
    Assembly:
   MicroFocus.COBOL.RuntimeServices (in MicroFocus.COBOL.RuntimeServices.dll) Version: 1.2.3.4
 
public void SetEnvironmentVariable(
	string name,
	string value
)
Public Sub SetEnvironmentVariable ( 
	name As String,
	value As String
)
public:
virtual void SetEnvironmentVariable(
	String^ name, 
	String^ value
) sealed
abstract SetEnvironmentVariable : 
        name : string * 
        value : string -> unit 
override SetEnvironmentVariable : 
        name : string * 
        value : string -> unit Parameters
- name
- Type: SystemString
 
- value
- Type: SystemString
 
Implements
IRunUnitSetEnvironmentVariable(String, String) 
NOTE: the environment variables in the process remain unaffected.
 
myRunUnit.SetEnvironmentVariable("DD_MYFILE", @"c:\tmp\myfile");myRunUnit.SetEnvironmentVariable("DD_MYFILE", "c:\tmp\myfile")No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
 
Reference