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

Posted on 2007-10-08
Last Modified: 2008-01-09
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.    
Question by:kathywargo
    LVL 9

    Expert Comment

    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.

    LVL 17

    Expert Comment

    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

    From PuTTY FAQ

    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.


    Author Comment

    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.
    LVL 76

    Expert Comment

    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.

    Author Comment

    Thank you I found what I wanted.  Try  
    LVL 1

    Accepted Solution

    PAQed with points refunded (500)

    EE Admin

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Secure Shell (SSH) is a network protocol for secure data communication, mainly used to administer remote Unix / Linux servers via command line. But it also allows the user to open a secure tunnel between a client and a server where he can send any k…
    I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now