Controlling events

As discussed in The WAIT statement, the EVENT=event operand on the WAIT statement names an event that WSim must post before further messages can be generated. To create and control the events that synchronize communication between simulated resources, you can code the following control statements:
  • EVENT
  • CANCEL
  • ON
  • DEACT
  • DATASAVE.
In addition, with the WAIT/POST facility and the ON/SIGNAL facility, you can simulate two or more terminals interacting in a single transaction or a master terminal controlling a network. Both facilities use events to control and synchronize the communication between terminals.

The following sections describe each statement and facility; Using events to synchronize multiple devices provides examples of using events to create complex simulations.