bcp_setxlate

Description

Specify the character set translations to use when retrieving data from or inserting data into an Adaptive Server.

Syntax

RETCODE bcp_setxlate(dbproc, xlt_tosrv, xlt_todisp)
 
DBPROCESS    *dbproc;
DBXLATE          *xlt_tosrv;
DBXLATE          *xlt_todisp;

Parameters

dbproc

A pointer to the DBPROCESS structure that provides the connection for a particular front end/Adaptive Server process. It contains all the information that DB-Library uses to manage communications and data between the front end and Adaptive Server.

xlt_tosrv

A pointer to a translation structure. The translation structure is allocated using dbload_xlate. xlt_tosrv indicates the character set translation to use when moving data from the application program to the Adaptive Server (the copy in, or DB_IN, direction).

xlt_todisp

A pointer to a translation structure. The translation structure is allocated using dbload_xlate. xlt_todisp indicates the character set translation to use when moving data from Adaptive Server to the application program (the copy out, or DB_OUT, direction).

Returns

SUCCEED or FAIL.

Usage

See also

dbfree_xlate, dbload_xlate, dbxlate