Ref: 12200001
Title: Modifying CICS to Handle Sense Code 0831
Date: 3/29/91

Copyright 3Com Corporation, 1991.  All rights reserved.

When a terminal user disconnects from a port on the CS/1-SNA without
logging out of the host application, the CS/1 will send sense code 0831
to the host application.  Under CICS, the node abnormal condition program
(DFHZNAC) is responsible for all errors associated with terminals
accessed through VTAM.  The default action for sense code 0831 is to log
the error and continue.  Consequently, when another terminal logs in,
they will get the previous user's session.

To prevent this from happening, a CICS programmer can modify the CICS
node error program (DFHZNEP), which is a user-modifiable extension to
the DFHZNAC program, to perform the following actions:

    *  Abort SEND by setting the TWAOAS action flag

    *  Abort Receive by setting the TWAOAR action flag

    *  Abort task by setting the TWAOAT action flag

    *  Close destination by setting TWAONCN action flag

This will terminate the task (kill the session) but leave the terminal
in service, available to CICS.

