The IMS interface sets a flag when the call to CLIv2 is identified as one coming from an IMS application.
When such a call is identified in non-2PC applications, the interface takes control at the termination (normal and abnormal) of a program and ensures that all sessions originated by the program are logged off.
Uncommitted transactions, aborts, spooled sessions, and spool files are processed by the Teradata Director Program (TDP) in the same manner that it processes the termination of any MVS task.