Returns the associated CCSID of the iSeries™ system that is represented by the given system object that was in use when the signon to the iSeries system occurred, and that is associated with the user ID that is set in the system object.
UINT CWB_ENTRY cwbCO_GetHostCCSID( cwbCO_SysHandle system, PULONG pCCSID );
The following list shows common return values:
This API does not make or require an active connection to the host system to retrieve the associated CCSID value. However, it does depend on a prior successful connection to the host system by using the same user ID as is set in the specified system object. This is because the CCSID that is returned is the one from the specific user profile, NOT the iSeries system's default CCSID. To retrieve a host CCSID without requiring a user ID, call cwbNL_GetHostCCSID.