Possible to “attach to” mainframe terminal?

Hi @octechnologist were you able to connect to the already existing Terminal session

You can’t connect to an existing terminal session. The Terminal Session activity establishes the connection for you.

Yes and that was my whole complaint. As a manual terminal user, I can leave the terminal open & logged in and come back to it to work any time I want.

I don’t see any reason why UiPath shouldn’t be able to do the same, as it can with an open web browser.

Even if I use IBM EHLLAPI connection, I will not be able to connect to existing mainframe ?

Correct. The Terminal Session activity is not an attach, it’s an under the hood connection.

@postwick I have to click on “Data Transfer from IBM…” button on Mainframe window at the end to download file. But since mainframe window is being automated through UiPath Terminal wizard, these menu options are not displayed and hence I cant achieve my need. Can you please help me to know how can I achieve this.

Also please help me as Send Control Key “Escape” button or Send Key “{ESCAPE}” is also not working on UiPath Terminal Wizard.

Are you sure there isn’t a keyboard command for the data transfer? If there isn’t, then your only option would be to use a third party client with the Terminal Session activity. Then you could attach to it (Use Application/Browser) at the end and click the button.

When you say the Send Control Key ESC isn’t working, what does isn’t working mean? Are you getting an error or it’s just doing nothing?

When you say the Send Control Key ESC isn’t working, what does isn’t working mean? Are you getting an error or it’s just doing nothing? - Its just doing nothing

If there isn’t, then your only option would be to use a third party client with the Terminal Session activity. - can you give an example of any third party client?

From the Terminal Session activity:

image

I am already using this; so can I attach the existing Terminal Wizard?

The point is the list of clients you can use. Only Direct Connection is the internal UiPath client. The others are third party clients that run in separate windows, and yes you can attach to them like any other application.

ok I will try this; why is the Send Control Key ESC not doing anything; I have to send Escape command but nothing is happening.

Hey there!

I have been facing the same challenge and found the solution. It is possible to connect to the existing terminal session (I mean the session, which has been manually started before the automation job) via IBM EHLL API.

To do that, you require the following info:

  1. Path to the EHLL library file. Usually it goes with your terminal app.
  2. The existing session name. Usually it is “A” (if you have only one session open on your machine). Here you can find where to double check/configure it in BlueZone (make sure the multiple connection checkbox is checked):

To connect to the existing session, you should provide the following info in the Terminal Session activity. If you face some issues with accessing treminal screen buffer (f.e. when using Get Text or Move Cursor activities), make sure that “EHLL enhanced” option is disabled and “Basic mode” is enabled. This should solve the problem.

After that you are able to get the output connection variable and use it in your project. However, please remember that it will always be Null (Nothing) if you forget to put some activities in the Terminal Session container.

That’s how you can interact with pre-open terminal session in your automation. I am using Rocket BlueZone, but this should work for other apps too, because everything is based on the EHLL API.