Reading Specific Text from Mainframe Screen

Hi Team,

I am trying to read a specific word which is present in a mainframe screen. For Example the screen contains

Statement Details
TYPE OF BUSINESS
NAME ABC LIMITED

ADRESS XYZ,
PINCODE
COUNTRY

STATEMENT DATE MONTHLY

The above mentioned as it is present in the mainframe screen. I need to read only the NAME ie.,
the output should be - “ABC LIMITED”
Kindly provide a solution to perform this.

1 Like

Buddy @Robotics

if you were able to select that element then use Get Text activity and you will be get a variable of type string outtext

or if you are not able to get that as element you screen scrapping from design tab and get the text with OCR and get the output variable of type string buddy @Robotics

once after gettting the variable outtext use like this buddy

if outtext = "Statement Details
TYPE OF BUSINESS
NAME ABC LIMITED

ADRESS XYZ,
PINCODE
COUNTRY"
(Note : mention the index as per your extraction buddy, i have mention as 2 here in the split
as that NAME is in the third line…and the starting index is 0 buddy @Robotics )

finaltext = split(outtext.split(Environment.Newline.ToArray())(2),“AME”)(1).ToString.Trim

Cheers buddy @Robotics

Hi @Robotics

What mainframe you are using?

Thanks
Ashwin.S

Get Text not working and not supposed to use OCR.

Do you have any sample xaml file. Just i wanted like

Name abc
Heading 123
xyz
Address
asdsa
dsdas
I want the output to be only “123 xyz”

Hi @Robotics

Have you tried Ctrl+A Ctrl+C and use copy selected text and store it in a variable

Thanks
Ashwin.S