Purpose

Issue the GOMTDM command to interact with the terminal device automation infrastructure. The available paths are:
GOMTDM OPTION
Sets options for all sessions. When an option is changed, it effects all sessions. The default options are MSG, TDELAY 0, QDELAY 0, STKFIFO, CCSID 0, NOTRACE, NOWAIT.
GOMTDM INIT
Starts a new session. The handle to the session is returned on the program stack in the order requested.
GOMTDM INPUT
Simulates keyboard input to the session. The handle is the handle returned when the session was started.
GOMTDM QUERY
Allows the program to examine information about the session. The handle is the handle returned when the session was started.
GOMTDM TERM
Terminates a session. The handle is the handle returned when the session was started.