Chapter 3: Functions

This chapter describes the functions that are included with your Open ClientConnect software.

Table 3-1: List of Functions

Function

Description

CTBBIND (see CTBBIND)

Binds a returned column or parameter to a program variable.

CTBCANCEL (see CTBCANCEL)

Cancels a request or the results of a request.

CTBCLOSE (see CTBCLOSE)

Closes a server connection.

CTBCMDALLOC (see CTBCMDALLOC)

Allocates a command handle.

CTBCMDDROP (see CTBCMDDROP)

Deallocates a command handle.

CTBCMDPROPS (see CTBCMDPROPS)

Sets, retrieves, or clears information about the current result set.

CTBCOMMAND (see CTBCOMMAND)

Initiates a language request or remote procedure call.

CTBCONALLOC (see CTBCONALLOC)

Allocates a connection handle.

CTBCONDROP (see CTBCONDROP)

Deallocates a connection handle.

CTBCONFIG (see CTBCONFIG)

Sets or retrieves context properties.

CTBCONNECT (see CTBCONNECT)

Connects to a server.

CTBCONPROPS (see CTBCONPROPS)

Sets or retrieves connection handle properties.

CTBDESCRIBE (see CTBDESCRIBE)

Returns a description of result data.

CTBDIAG (see CTBDIAG)

Manages in-line error handling.

CTBEXIT (see CTBEXIT)

Exits the programming interface.

CTBFETCH (see CTBFETCH)

Fetches result data.

CTBGETFORMAT (see CTBGETFORMAT)

Returns the server-defined format for a result column.

CTBINIT (see CTBINIT)

Initializes the programming interface.

CTBPARAM (see CTBPARAM)

Defines a command parameter.

CTBREMOTEPWD (see CTBREMOTEPWD)

Defines or clears passwords to be used for server-to-server connections.

CTBRESINFO (see CTBRESINFO)

Returns result set information.

CTBRESULTS (see CTBRESULTS)

Sets up result data to be processed.

CTBSEND (see CTBSEND)

Sends a request to the server.

CSBCONFIG (see CSBCONFIG)

Sets or retrieves global context properties.

CSBCONVERT (see CSBCONVERT)

Converts a data value from one datatype to another.

CSBCTXALLOC (see CSBCTXALLOC)

Allocates a context structure.

CSBCTXDROP (see CSBCTXDROP)

Deallocates a context structure.

NoteIn the “Parameters” section for the following function descriptions, (I) indicates an input parameter, and (O) indicates an output parameter.