IBM mainframe automation code stages

matuopm

Member
To interact with our IBM mainframe I use the locally installed IBM Personal Communication Client.

In Blue Prism I made some Code Stages to read out text by coordinates, set cursor to coordinates, write text to coordinates or simply sent simple key presses (like e.g. numpadenter or F3) to the application.

It works almost flawless on my development machine. But on our production machine the IBM Client seems to crash or something. It manages to work for some cases but then after like 3 cases it "randomly" stops/freezes. In the blue prism log files I can see that it is most of the time the read from coordinates function that causes this.

Its not even the problem that the WaitForInputReady() Function waits indefinately. When I click the host I get the common windows error that the application is not reacting.
Blue Prism also does not throw an exception from the codestage it simply waits.

I tried to limit the waiting time in the WaitForInputReady() but it behaves exactly the same way. anyone got an idea ?


Write
Ruby:
Dim autECLPSObj As Object
autECLPSObj = CreateObject ("PCOMM.autECLPS")
autECLPSObj.SetConnectionByName("A")

DIM autECLOIA as Object
autECLOIA = CreateObject("PCOMM.autECLOIA")
autECLOIA.SetConnectionByName("A")

if (autECLOIA.WaitForInputReady()) then
    autECLPSObj.SetCursorPos(y,x)
    autECLPSObj.SendKeys (Inputstring)
end if

Read
Ruby:
Dim autECLPSObj As Object
autECLPSObj = CreateObject ("PCOMM.autECLPS")
autECLPSObj.SetConnectionByName("A")

DIM autECLOIA as Object
autECLOIA = CreateObject("PCOMM.autECLOIA")
autECLOIA.SetConnectionByName("A")

if (autECLOIA.WaitForInputReady()) then
    outputstring = autECLPSObj.GetTextRect(y,x,y,(x+zeichen-1))
end if
 
Top