Using timers
You can use timers to avoid indefinite waits for a 3270 transaction to reply.
To avoid indefinite waits for a 3270 transaction to reply, the client could set a timer. If the timer expires, the client is reactivated and assumes that an error has occurred. The client can cancel the 3270 transaction, by issuing a CANCEL ACTIVITY command if the activity has not started, or by using a SET TASK PURGE command if it has.