RunUnitCall Method (String, Object)

MicroFocus.COBOL.RuntimeServices
Executes a program in the new run-unit with a set of parameters
The parameters are currently restricted to objects or native IL types

Namespace:  MicroFocus.COBOL.RuntimeServices
Assembly:  MicroFocus.COBOL.RuntimeServices (in MicroFocus.COBOL.RuntimeServices.dll) Version: 1.2.3.4
Syntax

public int Call(
	string program,
	params Object[] parameters
)

Parameters

program
Type: SystemString
parameters
Type: SystemObject

Return Value

Type: Int32

Implements

IRunUnitCall(String, Object)
Exceptions

ExceptionCondition
ArgumentExceptionIf StopRun method has already been invoked.
Examples

// Call the COBOL method and implicitly instantiate it
Result = myRunUnit.Call("Program1", "Jim", 10);
See Also

Reference