Send and Recieve data from pc to mainframe application form Telnet??

Currently I have to run a telnet session to execute a given program A...  I have to key in various fields on the terminal emulator  Press enter and the emulator displays the results.  I then print the results.  I then go to another program B (terminal emulation) and key in information from the print out.  

I have NO ability to update program A or Program b .  What I want to do is collect the data output from Program A to my PC and then feed the results to ProgramB as if I have keyed in the results.  
I thought about using a sniffer program to figure out  the  key strokes but I am not sure how I should go about sending the data to the program A and Program B  (the terminal emulator programs)  Should I use telnet  or could you offer any suggests.

The pc is Windows and the Program A and Program B reside on the mainframe.    Please try to point me in the right direction.    
Who is Participating?
PAQed with points refunded (500)

EE Admin
I'm not a VB programmer.  So I don't have any examples.

But if the format of the screens are pretty static, just the fields change.      You can write code to open a connection, feed it commands. and capture the returning data.   You may have to deal with some escape characters and what not, but knowing what kind of terminal type will help with that.

then just the reverse for the other side.    Put the characters needed in the right order.

a quick google search on visual basic telnet yeilded this page.

You can copy/paste with telnet (If the apps reside on same server then use notepad in betw. )
 - but perhaps you would like to use PuTTY instead of Telnet


A.6.6 How do I copy and paste between PuTTY and other Windows applications?
Copy and paste works similarly to the X Window System. You use the left mouse button to select text in the PuTTY window. The act of selection automatically copies the text to the clipboard: there is no need to press Ctrl-Ins or Ctrl-C or anything else. In fact, pressing Ctrl-C will send a Ctrl-C character to the other end of your connection (just like it does the rest of the time), which may have unpleasant effects. The only thing you need to do, to copy text to the clipboard, is to select it.

To paste the clipboard contents into a PuTTY window, by default you click the right mouse button. If you have a three-button mouse and are used to X applications, you can configure pasting to be done by the middle button instead, but this is not the default because most Windows users don't have a middle button at all.

You can also paste by pressing Shift-Ins.

Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

kathywargoAuthor Commented:
thank you for the cut and paste Idea but there are far too many entries to use cut and paste,but I do appreciate the concept.
It sounds like what we used to call 'facelifting'.

It supposes that there is an interactive mainframe program, controlled from a terminal by the user, who thereby runs transactions on the mainframe.

Instead of writing a whole windows-based communications package, to replace it - with special code for both the PC and the mainframe, a terminal emulator with programmable capabilities is used.

One benefit is a more up-to-date appearance by hiding terminal the emulator (e.g.Telnet) window. However, the main benefit is that a considerable degree of automation, including data capture can be achieved. Crucially it does not require rare COBOL and/or specialised transactional system coding skills, but can be done in Visual Basic.

I used to use Glink, pronounced gee-link.
kathywargoAuthor Commented:
Thank you I found what I wanted.  Try  
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.