Previous Topic: Sample Exit

Next Topic: Registers on Entry to the Exit

How the Exit Starts

To start the MAIEX02, use the SYSPARMS MAIEX02 command, naming the program that is to act as the exit. If the SYSPARMS command is included in the RMINIT procedure, an Exit Initialization call is made. Subsequent MAI session requests then call the exit. If the exit is not included in RMINIT but is invoked using command from a terminal, any existing users with MAI sessions have to log off before any calls are made to the exit for that user.

During the testing phases of the exit, you can force a new Initialization Call or to invoke an entirely different program. This can be accomplished by entering another SYSPARMS MAIEX02 command, specifying the same or a different program name. When the command is entered, an Initialization Call is made, with a zero System Correlator and any existing User Correlators are zeroed. In addition, MAI ensures that if any MAI sessions are in progress, the ending of those sessions does not cause a Session End call to the old or the new exit.