cwbUN_GetODBCConnection

Purpose

Return the handle to an ODBC connection on the specified iSeries™ server system. If no connection exists to the specified iSeries server, the API obtains a new handle.

Syntax

CWBAPI unsigned int WINAPI cwbUN_GetODBCConnection(
    const char * szSystemName,
    HDBC *phDBC
    );

Parameters

const char * szSystemName - input
The name of the iSeries system on which to retrieve an ODBC connection.
HDBC *phDBC - output
Address to return the ODBC connection handle.

Return Codes

The following list shows common return values:

CWB_OK
Successful completion.

Usage

None