I have a friend that can access a database on a mainframe from a
Mac thru a some kind of terminal emulator, but (for political
reasons) probably cannot get the same access rights from a PC.

I need to be able to write a script that will enter the appropriate
keyboard responses and capture the resultant screen data to a
text file for further processing.

If this were a PC, I'd run BitWise or something equally rediculous,
from a DOS window.

What kind of product do I need for the Mac? Is there something
that comes with it?

Thank you