Termination requested by the external subsystem

The external subsystem can cause the connection to be terminated either by posting the termination ECB or by activating the Subsystem Termination Service exit routine from the ESAP. The connection is not put in stopped status when the service is used.

The termination service might be used in conjunction with the external subsystem command exit function. For example, when the command exit routine is activated with an external subsystem termination command supplied on an IMS /SSR command, the exit routine could activate the Subsystem Termination Service exit routine to cause the connection to the external subsystem to be terminated.

On the initial identify performed in the control region, IMS provides the external subsystem with the address of a termination notification ECB. When the subsystem needs to terminate the connection, it posts the ECB. The ECB is located in CSA. Depending on the post code, IMS terminates the connection in the following manner:
  • Deactivate all active threads, prohibit the initiation of any new threads, and then terminate the connection. Upon completion of the terminate function, the connection is set in a stopped state.
Supported Post Codes:
X'40000000'
Reserved for IMS.
X'40000008'
External subsystem is terminating in an orderly fashion.
X'4000xxxx'
All other post codes are interpreted as a quick or catastrophic shutdown of the external subsystem.