Writing a terminal error program
The CICS® terminal error program (TEP) handles error conditions for devices that use the sequential access method. You cannot use a terminal error program for z/OS® Communications Server-supported devices. For z/OS Communications Server, use a node error program instead.
CICS provides a sample terminal error program that you can use as the basis for your own program.