# 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="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FWBwZfbwac0t1pkNQI0r5%2Fimage.png?alt=media&#x26;token=cde02f40-0d1c-4eb5-b4ce-3ec1bee52ab0" alt=""><figcaption></figcaption></figure>

**Example 2**

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

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FkPe3tUxYAeLs1cvHga9y%2Fimage.png?alt=media&#x26;token=cd2708e7-26a6-45a9-9a8b-c57758cae1f7" alt=""><figcaption></figcaption></figure>

**Example 3**

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

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FiwY4yebS8v4GeDGGeAgS%2Fimage.png?alt=media&#x26;token=29da7387-d7a6-4503-90aa-1057b964bf00" alt=""><figcaption></figcaption></figure>

**Example 4**

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

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FxjQD3HZDjovX9QjOKJNm%2Fimage.png?alt=media&#x26;token=c4ef5296-f4c4-48fe-a837-deacd472d658" alt=""><figcaption></figcaption></figure>
