QUIT statement
- Last Updated: July 20, 2021
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Raises the QUIT condition. By default, this exits from the
ABL session and returns to the operating system.
When QUIT is executed from within a
procedure running on an application server, it terminates the request and closes the
connection to the client that initiated the request.
When QUIT is executed from within a procedure running on a
Progress Application Server for OpenEdge (PAS for OpenEdge), the ABL session is reset to its
initial state, which includes deletion of persistent procedures and static ABL objects, the
disconnection of databases (or re-connection if the databases were connected at startup),
and the clean-up of all global data, such as shared variables. Control then returns to the
ABL client session from which the server session was accessed, and the server session is
returned to its PAS for OpenEdge session pool for access by other client requests.
Syntax
|
Example
This procedure displays a menu. If you choose the last menu item, Exit ABL,
the procedure processes the QUIT statement.
r-quit1.p
|
Notes
- To modify the
QUITstatement, add theON QUITphrase to a block. - If
QUITis executed during a transaction, the AVM commits the transaction before exiting. - In a PAS for OpenEdge application, you typically use this statement for
a client connected using the session-managed application model. In this case, you execute
QUITas the final statement in the PAS for OpenEdge Disconnect procedure after setting theSERVER-CONNECTION-BOUND-REQUESTattribute on theSESSIONhandle to FALSE. This cleans up the server session for access by the next client request.