Hi Saloni,
Welcome to the "IBM i" world, AS400. It's an outdated term for what we now call an actual modern platform :).
(yes, google still indexes it quite difficultly, so AS/400 , AS400 and iSeries are still valid search terms to use for the deep internet).
For your use case, which I am assuming (please , you are welcome to correct me if I am wrong), is quite simple from my understanding of what you are explaining:
- You would like to show the green screen 5250 screens, take data off those screens and enter it into a python program for futher processing , correct ?
- These screens are most likely old screens that require some sort of sequence to navigate , but the data is valuable none the least of what you are trying to capture?
If that is the case, have a look at this repository:
- https://github.com/simonfaltum/p5250
and this thread on Reddit:
- https://www.reddit.com/r/IBMi/comments/1qnhu75/automation_via_tn5250_data_stream/
(Disclaimer : SCAN and make sure your security posture is ALWAYS good for ANYTHING you are downloading of the internet, even something as simple as Python).
As others recommended, on IBM Access Client Solutions, if you do get into the thing called "Personal Communications EHLLAPI Bridge" you will need to also install on Windows a EHLLAPI DDL to interface that emulator programmatically. Herein lies a great challenge to make that work in a specific way. If you do happen to come across that though, you will need to navigate those screens with HAScripts in a Java-type environment. Following my own experience here, I have suggested commercial products that will greatly assist in easing this burden.
Here are a few references for what I am mentioning here:
I can recommend a few if you need others than what Tom already mentioned in this thread.
(Just message me privately, and I will assist you in that regard).
Marius
------------------------------
Marius le Roux theIBMiGuy
Owner , IBM i Modernization and Integration Consultant
MLR Consulting
------------------------------
Original Message:
Sent: 05/09/22 11:55 PM
From: Saloni Choudhary
Subject: Connecting to AS400
Hi Tom,
I want to have terminal emulation. I will explain you my requirements:-
Basically I have to compare the data from the excel sheet with the data stored in the DB through screen scraping and my automation tool will be taking the screenshots of the activity which it will be performing. So, in short I want to perform the GUI automation & need to store those screenshots in some folder and send it in a mail to the outlook. My priority is to use python for it, but I don't have any idea how to do it.
It would be really great if you could tell me how to do it.
Thanks
------------------------------
Saloni Choudhary
------------------------------
Original Message:
Sent: Mon May 09, 2022 11:20 AM
From: Tom McGivern
Subject: Connecting to AS400
When you say connecting
Do you mean for terminal emulation (5250), or server to server comm?