cwbRC_GetHostCCSID

Use the cwbRC_GetHostCCSID API with this product.

Purpose

Get the coded character set identifier (CCSID) associated with the IBM i job. This CCSID along with the client CCSID can be used to convert EBCDIC data returned by some IBM i programs to ASCII data that can be used in client applications.

Syntax

 
unsigned int CWB_ENTRY cwbRC_GetHostCCSID(
                             cwbRC_SysHandle     system,
                             unsigned long      *hostCCSID);

Parameters

cwbRC_SysHandle system - input
Handle that was returned by a previous call to the cwbRC_StartSysEx function. It is the IBM i identification.
unsigned long * hostCCSID - output
Pointer to an unsigned long where the host 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.