cwbRC_GetHostCCSID

Purpose

Get the coded character set identifier (CCSID) associated with the iSeries™ server job. This CCSID along with the client CCSID can be used to convert EBCDIC data returned by some iSeries 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 identifies the iSeries system.
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.