cwbDQ_SetConvert

Purpose

Set the convert flag. If the flag is set, all data being written will be converted from PC CCSID (for example, ASCII) to host CCSID (for example, EBCDIC), and all data being read will be converted from host CCSID (for example, EBCDIC) to PC CCSID (for example, ASCII). Default behavior is no conversion of data.

Syntax

 
unsigned int CWB_ENTRY cwbDQ_SetConvert(
                             cwbDQ_Data          data,
                             cwb_Boolean         convert);

Parameters

cwbDQ_Data data - input
Handle of the data object that was returned by a previous call to cwbDQ_CreateData.
cwb_Boolean convert - input
Flag indicating if data written to and read from the queue will be CCSID converted.

Return Codes

The following list shows common return values.

CWB_OK
Successful completion.
CWBDQ_INVALID_DATA_HANDLE
Invalid data handle.

Usage

None