RunUnitSetEnvironmentVariable Method

MicroFocus.COBOL.RuntimeServices
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
Syntax

public void SetEnvironmentVariable(
	string name,
	string value
)

Parameters

name
Type: SystemString
value
Type: SystemString

Implements

IRunUnitSetEnvironmentVariable(String, String)
Remarks

NOTE: the environment variables in the process remain unaffected.
Examples

myRunUnit.SetEnvironmentVariable("DD_MYFILE", @"c:\tmp\myfile");
See Also

Reference