Previous Topic: MAI-OC and Multiple Regions

Next Topic: MAI Installation Exit

EQUATE Values for MAI-OC Commands

The MAI-OC feature performs the functions of session connection and disconnection, and sends messages on sessions in response to MAI-OC commands issued by users.

If the standard SOLVE EQUATE command is used, MAI-OC commands can be made easier to use. For certain applications, use of EQUATE values enables the operation of MAI-OC sessions to be identical to operation of the same session from a native terminal attached directly to the application.

Note: The use of EQUATEs varies according to the requirements of different installations. Consider how EQUATEs can be used to make MAI-OC operation simple in your installation.

Example: Equate an MAISEND Command for an IMS Session

You have an MAI-OC session with an IMS system and want to display the IMS transaction queue. You use the following full MAI command:

MAISEND IMS /DIS Q TRAN
MAISEND

Specifies the command that requests MAI-OC to transfer data across a session.

IMS

Specifies the session identifier of a session with the IMS application to which to send the message.

The remainder of the data, starting with the slash (/), is the message sent to the application.

By setting up the following EQUATE value, you can enter the IMS message text in its native form. The region expands the slash (/) to the full MAISEND command format:

EQUATE / MAISEND IMS /

An alternative is to EQUATE the target application name to the MAISEND command.

Example: Equate an MAISEND Command for a JES Session

You set up the following EQUATE for use on a JES session:

EQUATE $ MAISEND JES2 $

You can use the EQUATE to enter JES2 commands as if in native mode, for example:

$DA