# Log Off from mainframe

This is a pre-built action located under the **Mainframe List Element**. The functionality of this action in Avo Assure is used to log off from the Mainframe application and securely terminate the session.

### **Syntax**

**Input Value:** `<Number>`

{% hint style="danger" %}
**Note:** It allows only numerical value.

Following are Number functions:

1\.      Prints the data set and Logoff. (Not recommended)

2\.      Delete the dataset and Logoff.

3\.      Keep the existing dataset and Logoff.

4\.      Keep the new dataset and Logoff.
{% endhint %}

| Argument                          | Description                                                                                                                                                     |
| --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>\<Number></p><p>(Required)</p> | <p>Specify the only numeric values are accepted. Each number corresponds to a specific logoff behavior.</p><p>(for example value is -  <strong>1</strong> )</p> |

**Output Value:**&#x20;

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

**Example 1**

**Performs logoff operation from the mainframe emulator with specific dataset handling option**

The **Log Off from mainframe** action takes the value from the Input Value column (e.g., **3**) and logs off from the mainframe emulator based on the number provided.

<figure><img src="/files/2EplmFE9hLK9JP7meJAD" alt=""><figcaption></figcaption></figure>

**Example 2**

**1 - Prints the data set and Logoff. (Not recommended)** &#x20;

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

**Example 3**

**2- Delete the dataset and Logoff.**

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

**Example 4**

**4 - Keep the new dataset and Logoff.**

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


---

# 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/log-off-from-mainframe-1.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.
