The OPS/MVS IMS Automated Operator Interface (AOI) makes uses of exits to communicate with IMS IOF regions.
IMS Automated Operator Interface (AOI) allows users to use automation to read and react to IMS messages and commands destined for the MTO or IMS log. This interface can alter messages and/or send copies of commands or messages to alternate destinations. An exit point was provided so that users can write programs that can perform these functions automatically.
When IBM released IMS R5.1, they introduced a second AOI exit called DFSAOE00, or Type 2. This exit is an improvement over the original AOI exit DFSAOUE0, or Type 1. With this Type 2 exit, users can now write their own exits that work in both Transaction Management and database-only environments. To enable this new type of exit to work in both environments, the IMS development team set a new exit point, retaining the old one for backward compliance.
The Type 2 exit is processed first, if it exists, and controls whether or not the Type 1 exit is called. If a Type 2 exit does not exist, the Type 1 exit, by default, receives control. If you implement Type 2 exit processing and you want to process Type 1 exits, you must force the Type 2 processing to override the default.
This presents a unique challenge for automation applications. The IMS Operations Facility (IOF) in OPS/MVS needs to be aware of both types of user exits. When a user implements both Type 1 and Type 2 exits, IOF must be made aware of the decisions made by the Type 2 exit. IOF honors the user's Type 2 exit if the Type 2 exit is set to pass control to the Type 1 exit.
The most complicated scenario would be when a user implements both types of user exits and AOI is processing IMS multi-segment messages:
Note that after Step 4, IMS bypasses any Type 2 exit processing for the remaining segments of the message.
A variation of this process is when the Type 2 exit retains control in Step 4:
The IOF facility of OPS/MVS was enhanced extensively to accommodate these two types of user exits. The enhancements were implemented to require a minimum amount of user effort and to retain the automation functionality of the feature.
Additional Information:
For more information see the product documentation section titled: Install the IMS Operations Facility