OTMAASY= parameter for procedures

Use the OTMAASY= parameter in procedure to specify whether (Y) or not (N) a non-response transaction originating from a program-to-program switch is to be scheduled asynchronously. Valid values are Y, N, and S. The default value is N.

In a shared-queues environment, the originated transaction usually maintains affinity with the system in which the originating transaction was processed, unless OTMAASY is set to S (and AOS=Y).
CM0 transactions are always asynchronous and have no affinity.
Restriction: This parameter applies to CM1 synchronous transactions only. This parameter is for send-then-commit messages only.
Y
Specifies that a non-response transaction originating from a program-to-program switch is scheduled asynchronously.
You must define the originating transactions as response or non-response, depending on whether they reply to the IOPCB. The first originated transaction that is scheduled and defined as response can continue the synchronous conversation. If the originated transaction cannot continue the synchronous conversation and neither the originating nor the originated transactions reply to the IOPCB message, DFS2082 is returned to the client.
If all the originated transactions are defined as non-response, and none can continue the synchronous conversation, the client becomes nonresponsive.
By specifying Y, this parameter can be used in the multiple program-to-program switches environment to ensure that only response transactions can be scheduled synchronously.
N
Specifies that a non-response transaction originating from a program-to-program switch is not scheduled asynchronously.
The first originating transaction that is scheduled can continue the synchronous conversation. You cannot predict which of the originated transactions is the first scheduled transaction. This situation can lead to a "race" condition. If the originated transaction cannot continue the synchronous conversation and neither the originating nor the originated transactions reply to the IOPCB message, DFS2082 is returned to the client.
S
Specifies that the first transaction originating from a program-to-program switch performed through ISRT to a ALTPCB (if non-Express) is scheduled synchronously and can continue the synchronous conversation.

If you specify OTMAASY=S, the first program-to-program switch that is able to continue the synchronous conversation is synchronous. Every further program switch is asynchronous.

If you specify OTMAASY=S, IMS overwrites the APPCASY value to S. If you specify APPCASY=S, IMS overwrites the OTMAASY value.

In a shared-queues environment where the support for synchronous APPC/OTMA is active (AOS=Y), if you specify OTMAASY=S, the program-to-program switch transactions do not have any affinity.

Tip: No DFS2082 is issued for a transaction that is scheduled asynchronously.