• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 841
  • Last Modified:

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.    
0
kathywargo
Asked:
kathywargo
1 Solution
 
chingmdCommented:
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.

http://www.jscape.com/articles/telnet_using_vb.html

0
 
jburgaardCommented:
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
http://www.chiark.greenend.org.uk/~sgtatham/putty/faq.html#faq-cutpaste 

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.

HTH
0
 
kathywargoAuthor Commented:
iburgaard:
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.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
GrahamSkanCommented:
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.

http://www.gar.no/en/products/glink_for_windows
0
 
kathywargoAuthor Commented:
Thank you I found what I wanted.  Try Autoit.com  
0
 
Computer101Commented:
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now