Session Termination
To terminate the current session, the application issues the DISCONNECT statement. An optional session identifier parameter exists to identify the current session specifically if desired.
When an application terminates one of many open sessions, it is not automatically placed in another session. The application must issue either a CONNECT or SET_SQL statement to establish the current session. If the application fails to do this, OpenSQL returns an error when the next OpenSQL statement is issued.
To terminate a specific session, specify the session identifier. To obtain the session identifier for the current session, issue the INQUIRE_SQL(:session_id=SESSION) statement. To disconnect all sessions, issue the DISCONNECT ALL statement.
Last modified date: 08/28/2024