Combining Session Cleanup and Logical Terminal Assignment
You can activate both session cleanup and LTERM assignment for the same IMS application. To do so, specify IMS='ASSIGN,DEQUEUE' in the APPLDEF command that defines the IMS application.
Specifying both ASSIGN and DEQUEUE can be valuable in an environment that provides LTERM assignment for a subset of the user community, with all users sharing a pool of PTERMs. For the users requiring LTERM assignment, you may need to preserve queued messages so they can be retrieved at a later time.
A user without LTERM assignment receives the LTERM currently assigned to the PTERM associated with the user's terminal. This PTERM may have been in use by a user with LTERM assignment. In this case, the PTERM should be reassigned a default LTERM specification so as to retain the previous user's session. A specification of 'ASSIGN,DEQUEUE' satisfies all users in this situation.