The COMO utility provides a means of recording all input and output from the terminal to a specified record in a directory.
On Unix platforms the directory is called &COMO&. On Windows it is called COMO.
COMO ON SessionId
COMO DELETE SessionId
The Unix command typescript can be used for this functionality if COMO is NOT part of your legacy application.
Recorded information can then be found in the "typescript" file.