To delete committed sessions.
Authorization
One of the following:
Required Connection
Database
API Include File
sql.h
C API Syntax
/* File: sqluvend.h */ /* API: Delete Committed Session */ /* ... */ int sqluvdel ( struct Init_input *, struct Init_output *, struct Return_code *); /* ... */ |
API Parameters
Usage Notes
If multiple sessions are opened, and some sessions are committed but one of them fails, this function is called to delete each committed session. An sqluvint call will precede this call and will be utilized to identify the output data to be deleted. If the return code from this call is a SQLUV_DELETE_FAILED, DB2 will not notify the caller of this error. The reason being that DB2's policy is to return the first fatal failure and ignore subsequent failures. In this case, for DB2 to have called sqluvdel, an initial fatal error must have occurred.
Return Codes
Table 78. Valid Return Codes for sqluvdel and Resulting DB2 Action
Literal in Header File | Description | Probable Next Call | Other Comments |
---|---|---|---|
SQLUV_OK | Operation successful. | sqluvend | the next call will terminate the session |
SQLUV_DELETE_FAILED | Delete request failed. | sqluvend | the next call will terminate the session |