CANCEL's a program
Namespace: MicroFocus.COBOL.RuntimeServices
Assembly: MicroFocus.COBOL.RuntimeServices (in MicroFocus.COBOL.RuntimeServices.dll) Version: 1.2.3.4
Syntax
Parameters
- program
- Type: SystemString
Implements
IRunUnitCancel(String)Examples
// Create a run unit for the called COBOL program var myRunUnit = new MicroFocus.COBOL.RuntimeServices.RunUnit(); try { myRunUnit.Call("ProgCounter"); myRunUnit.Call("ProgCounter"); myRunUnit.Cancel("ProgCounter"); myRunUnit.Call("ProgCounter"); } finally { // Destroy the run unit myRunUnit.StopRun(); }
cobol
program-id. ProgCounter. data division. working-storage section. 01 counter binary-long value 1. procedure division. display "ProgCounter has been called " counter " times" add 1 to counter goback. end program ProgCounter.
See Also