You haven't told us what the mainframe system is called, or even the brand
of computer it runs on, so how could we possibly answer this?
Anyway ... talk to the maker of the mainframe system and also ask your
question on any user forums they have.
Simple rule of thumb - ask the users/maker of the lesser-known product about
the possibilities of connection to the universally-known product - not the
other way around.