# Connect Session

This is pre-built Action located under the **Mainframe List Element**. The functionality of this action in Avo Assure is to connect to a currently open host session using the provided session ID. This allows the script to perform operations or validations on the connected session.

### **Syntax**

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

| Argument                                  | Description                                                |
| ----------------------------------------- | ---------------------------------------------------------- |
| <p>\<ShortSessionID></p><p>(Required)</p> | Specify the unique ID of the open host session to connect. |

**Output Value:**&#x20;

| Argument                                                     | Description                                                     |
| ------------------------------------------------------------ | --------------------------------------------------------------- |
| \<Dynamic Variable>(Optional);\<Dynamic Variable> (Optional) | This dynamic variable holds the result as **True** or **False** |

**Example**

**Connects to a specific mainframe session using session ID**

The **Connect Session** action takes the value from the Input Value column (e.g., **23.229.8.213**) and establishes a connection to the specified session using the provided short session ID.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FWEfOtdP03oRPac2pBDXQ%2Fimage.png?alt=media&#x26;token=31ebc5a3-02eb-44fe-9ab9-6c825a064e7d" alt=""><figcaption></figcaption></figure>
