IBM Books

Administrative API Reference

sqluvend - Unlink the Device and Release its Resources

Ends or unlinks the device, and frees all its related resources. The vendor has to free or release unused resources before returning to DB2 (for example, allocated space and file handles).

Authorization

One of the following:

Required Connection

Database

Version

sql.h

C API Syntax



/* File: sqluvend.h */
/* API: Unlink the Device and Release its Resources */
/* ... */
int sqluvend (
  long int action,
  void * pVendorCB,
  struct Init_output  *,
  struct Return_code  *);
/* ... */
 

API Parameters

action
Input. Used to commit or abort the session:

pVendorCB
Input. Pointer to the Init_output structure.

Init_output
Output. Space for Init_output de-allocated. The data has been committed to stable storage for a backup if action is to commit. The data is purged for a backup if the action is to abort.

Return code
Output. The return code from the API call.

Usage Notes

This function will be called for each session opened.

There are two possible action codes:

Return Codes

Table 84. Valid Return Codes for sqluvend and Resulting DB2 Action
Literal in Header File Description Probable Next Call Other Comments
SQLUV_OK Operation successful. no further calls Free all memory allocated for this session and terminate.
SQLUV_COMMIT_FAILED Commit request failed. no further calls Free all memory allocated for this session and terminate.
SQLUV_ABORT_FAILED Abort request failed. no further calls


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]