DISABLE_SESSION

The Data Not Found result is returned to the calling state table, and then the session is disabled. This informs the state table not to expect valid return values in the output parameters. If the DISABLE_SESSION statement is issued from a script that is invoked by another script, then both the called and the calling scripts are aborted and a nonzero return code is returned to the state table.

In an initial or refresh script, you should use the ABORT statement rather than DISABLE_SESSION, if you want attempts to re-enable the session to be made automatically.

Syntax


This picture shows the syntax of the DISABLE_SESSION statement.

Example

DISABLE_SESSION;

Procedure

To use the 3270 Script window’s Statements menu to define an ABORT statement, follow this procedure:

  1. From the Welcome window, click on Applications—> 3270 Servers
  2. Adding the statement to the script : Click Statements —> Disable Session.

    The DISABLE_SESSION statement is added to the script.

Related information