Previous Topic: How Commands Can Be Abbreviated

Next Topic: MAI-OC and Multiple Regions

Issue Multi-Segment Commands to an IMS Application

When sending commands to an IMS application over an MAI-OC session, IMS requires that some input messages be multi-segment. Specifically, a /BRO command must be in two segments. Consider, for example, the following command:

/BRO NODE NMMAV003 COFFEE TIME

To make this command form two segments, IMS requires a new line character after the node name and before the message.

The MAILOGON command lets you specify a character to represent a new line character in data sent through an MAISEND command.

To issue multi-segment commands

  1. Create an MAI-OC session specifying a new line character, for example:
    MAILOGON IMS NL=+
    

    The command defines the new line character as the plus sign (+).

  2. Send the multi-segment command, for example:
    MAISEND IMS /BRO NODE NMMAV003+COFFEE TIME
    

    The plus sign (+) is replaced by the necessary new line character.