Resolve Client Server CCSID (QTQRCSC) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Resolve Client Server CCSID (QTQRCSC) API returns the CCSID that will enable the proper transfer of data between the server and the client.


Authorities and Locks

None.


Required Parameters

Server CCSID
INPUT; INT(4)

A variable that contains the CCSID value for the server. This value must be a positive number in the range 1 to 65 533.

Possible values follow:


Client CCSID
INPUT; INT(4)

A variable that contains the CCSID value for the client. This value must be a positive number in the range 1 to 65 533.

Selection
INPUT; INT(4)

A variable that allows the user to specify what CCSID to return. If the resolved CCSID is not supported as a job CCSID for the system on which the API is being called, the API returns either that CCSID or finds the closest match for the system it is on. If the exact match is to be returned, but the CCSID is not supported on the host system, the feedback code is set.

Possible values follow:


Resolved CCSID
OUTPUT; INT(4)

A variable that contains the resolved CCSID value. This value must be a positive number in the range 1 to 65 279.

Feedback code
OUTPUT; FEEDBACK

In this feedback array, the function returns the processing status (and any associated reason) for this function. The field type is an array of three 32-bit two's complement binary values (12 bytes or 96 bits). The status code is a non-negative number in the first 16 bits, and the reason code is a non-negative number in the second 16 bits. The following are specific meanings of the status code and associated reason code values (in hexadecimal) contained in the first 32 bits of the feedback code. The other 64 bits are reserved.


Feedback Codes and Conditions



Usage Notes

  1. This API uses the Get Related Default CCSID (CDRGRDC) and Get Encoding Scheme, Character Set, and Code Page Elements (CDRGESP) APIs to perform its functions. If any errors are found on the calls to these APIs, the feedback code is set to those values. Refer to the documentation for these two APIs for more feedback codes.

API introduced: V4R1

[ Back to top | National Language Support APIs | APIs by category ]