cwbRC_GetClientCCSID

Purpose

Get the coded character set identifier (CCSID) associated with the current process. This CCSID along with the host CCSID can be used to convert EBCDIC data returned by some iSeries™ program to ASCII data that can be used in client applications.

Syntax

 
unsigned int CWB_ENTRY cwbRC_GetClientCCSID(
                             cwbRC_SysHandle     system,
                             unsigned long      *clientCCSID);

Parameters

cwbRC_SysHandle system - input
Handle that was returned by a previous call to the cwbRC_StartSysEx function. It identifies the iSeries server system.
unsigned long * clientCCSID - output
Pointer to an unsigned long where the client CCSID will be written.

Return Codes

The following list shows common return values.

CWB_OK
Successful completion.
CWB_INVALID_POINTER
Bad or NULL pointer.
CWBRC_INVALID_SYSTEM_HANDLE
Invalid system handle.

Usage

See related APIs in the CWBNLCNV.H file.