Most MAI-OC sessions can be terminated by sending a logoff command of the type expected by the application. For example, for TSO this would be LOGOFF, for IMS it would be /RCL.
However, some applications (such as JES) do not have a logoff command, or you may have trouble sending the command. In these cases, you can use the MAIDISC command to force the disconnection.
If you exit OCS with MAI-OC sessions intact, your region automatically generates MAIDISC commands for all your MAI-OC sessions. This causes lost terminal conditions at the applications for all your MAI-OC sessions. We do not recommend that you use MAIDISC to end TSO sessions because the logoff leaves a reconnect environment pending for a system-defined period.