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.
DISABLE_SESSION;
To use the 3270 Script window’s Statements menu to define an ABORT statement, follow this procedure:
The DISABLE_SESSION statement is added to the script.