At work, we are working on IBM TPF systems, with access through PC 3270 sessions (IBM Personal communication aka PCOMM). The PCOMM provides an API EHLLAPI with a dll. This allowed us to developp a framework to run Perl scripts to access and modify data on TPF. I did write a code snippet on PerlMonks to help people willing to automate tasks through PC 3270 sessions.