The exit program for the XICTENF and XALTENF exits
How your exit program identifies the TOR from the parameters supplied by CICS can only be decided by reference to your system design.
In the simplest case, you would hand back to CICS the netname of the system that originated the START request. In a more complex situation, you may decide to give each terminal a name that reflects the system on which it resides.
For programming information about the exit program, see Terminal not known condition exits XALTENF and XICTENF. A sample program is also available in the DFHXTENF member of library CICSTS54.CICS.SDFHSAMP.