What happens when the user logs off

When the terminal user finishes work and logs off:
  1. CICS issues a CLSDST to ask VTAM to end the session.
  2. CICS attempts to delete the TCT entry after a delay specified in the AILDELAY system initialization parameter.

    Note that the TCT entry cannot be deleted if there is a lock effective at the time. For instance, CEMT INQUIRE TERMINAL or an outstanding ATI request locks the TCT entry.

  3. CICS gives control to the autoinstall control program in case it has any further processing to do; for example, to free the TERMINAL name it gave to the terminal.

If the terminal's TYPETERM definition specifies SIGNOFF(LOGOFF) and the RACF® segment specifies timeout, expiry of the timeout period causes the terminal to be logged off and the user to be signed off. After this automatic logoff, the delay period commences, leading to deletion of the TCT entry unless the terminal logs on again before the period ends. For details, see Automatic sign-off, logoff, and TCTTE deletion.