To test DL/I calls on the workstation, you must have the IMS Option of the Micro Focus Workbench installed. You can access the simulator using the IMSSimulationSystem class.
The IMSSimulationSystem class provides several instance methods that allow you to test your applications on the workstation in an IMS environment.
Because IMSSimulationSystem is not an interface to IMS/ESA, the methods are described without any connection to DL/I calls documented in the IMS/ESA manuals. See Step 4: Setting up the simulator from Smalltalk for more information.
Example 1
Creates a new instance of the IMS simulator.
| mySim | mySim := IMSSimulationSystem new.
Example 2
Runs a batch program on the IMS simulator using a PSB named "PSBBANK1".
mySim runBatchStartUpCode: 'BatchClass run myAppl1' onPSB: 'PSBBANK1'.
Example 3
Runs a message processing program on the IMS simulator using a PSB named "PSBBANK1" and an array named "myInput".
mySim runOnlineStartUpCode: 'OnlineClass run myAppl2' onPSB: 'PSBBANK1' message: (Array with: myInput).