Jess Posted January 18, 2018 Posted January 18, 2018 I am trying to read the data from the mainframe screen sessions. can anyone help me or guide me how is it done. Thank You
water Posted January 18, 2018 Posted January 18, 2018 Depends on the emulation software you run. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Jess Posted January 18, 2018 Author Posted January 18, 2018 @water.. I am using personal communications. Can You help me. I am not getting just how to give it a start. Thanks
water Posted January 18, 2018 Posted January 18, 2018 PC3270 provides an API (COM) to access the mainframe session. IIRC this has been discussed a feew times on the forum - means: The search feature should return a few hits pointing you into the right direction. Example: My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Moderators JLogan3o13 Posted January 18, 2018 Moderators Posted January 18, 2018 Moved to the appropriate forum, please pay attention to where you post in the future: "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Jess Posted January 19, 2018 Author Posted January 19, 2018 @JLogan3o13.. I am sorry .. I will be careful next time.
Jess Posted January 19, 2018 Author Posted January 19, 2018 @water.. I am sorry for asking again and again. I am not able to understand that how do we run the mainframe session. Like we write Run("calc.exe") for calculator . How do we do that for the mainframe sessions. Thanks
water Posted January 19, 2018 Posted January 19, 2018 (edited) The thread I posted above should give you an idea. It mentions 5250 (S/36, AS/400) but works the same way for 3270. When PC is installed on your PC you call the HLLAPI DLL and the interact with the host session. The thread shows a framework to handle all needed processing. Do you have the PC3270 documentation available (or can you download it form the web)? Edited January 19, 2018 by water My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Jess Posted January 19, 2018 Author Posted January 19, 2018 @water I searched on web. I got a pdf file. I will try it out again. I will get back again if I will need more guidance. Thanks
junkew Posted January 19, 2018 Posted January 19, 2018 (edited) Search forum for Hllapi.dll and you will find the posts on this subject Edited January 19, 2018 by junkew FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
Jess Posted January 23, 2018 Author Posted January 23, 2018 Hi, I am trying to write a script wherein I have to search for a text in the screen. Can anyone help me in that.. Thanks
junkew Posted January 23, 2018 Posted January 23, 2018 what do you have so far. The simple straight forward screenscraping approach Send a select all (ctrl+a frequently) to the terminal Send a copy all (ctrl+x) to the terminal Use the clipboard functions to get your string in a variable More complex is on the 3270 screens to get the colordetails. For that you have to emulate the terminal with hllapi.dll which you can read in IBM examples of visual basic or c# as given in other post. FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
Balaji12 Posted January 23, 2018 Posted January 23, 2018 Hi, I am trying to write a script to select the text at the specified coordinates. example: like the word starts at the position 16, 10(row, column). Can anyone help me out in this thing. Thanks
Developers Jos Posted January 23, 2018 Developers Posted January 23, 2018 Ok Jess or Balaji12, stick to this one thread from here on and also to the Jess account. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
junkew Posted January 23, 2018 Posted January 23, 2018 How far did you try? If you screenscrape a screen you get 1 lengthy string with a certain length from your clipboard Normally you can split that in pieces of 80 or 132 characters (and sometimes you get CRLF characters after each line) Then its a simple math (16 * linesize) + 10 to get your substring starting point study clip*, string* functions over here https://www.autoitscript.com/autoit3/docs/functions.htm and probably you need controlsend/send to send ctrl+a, ctrl+c FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now