Server Guide

IMSSimulationSystem class

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.

Defined class methods

new
Creates a new instance of the access to the simulator.

Defined instance methods

runBatchStartUpCode:onPSB:
Invokes the IMS simulator to run a batch application using the named PSB.

runOnlineStartUpCode:onPSB:message:
Invokes the IMS simulator to run an online (MPP, IFP, or BMP) application using the named PSB and the indicated message.

simulatorTrace
Answers the status of the trace. Supplies trace data to the System Transcript if the answer is true.

simulatorTrace:
Sets the trace option on the IMS simulator. The default is false.

Examples

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).


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]