# Connect Session

This is pre-built Action located under the Mainframe List Element Name. It instructs the Avo Assure Client to connect to any open host session.

### **Syntax**

**Input:** `<ShortSessionID>`&#x20;

**Output:** `<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)`&#x20;

<figure><img src="/files/sd3nRyntINcGlRiM4v6J" alt=""><figcaption></figcaption></figure>

### **Usecase/Example**

<figure><img src="/files/jGESfsecRkGc1GvkRjqM" alt=""><figcaption></figcaption></figure>

### **Scenario**

In a scenario when testing a Mainframe application, multiple host sessions are open at the same time. The automation script needs to connect with a specific session to perform operations or validations. To establish this connection with an already open session, use the **Connect session** keyword.

### **Input**

23.229.8.213

### **Expected Result**

The Action needs to connect to the session ID which is given Input Value.

### **Output**

The Connect session Action helped to connect with given session (23.229.8.213).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/actions/mainframe/connect-session.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
