QtqValidateCCSID()--Validate CCSID API


  Syntax

  int QtqValidateCCSID (CCSID)

              int          CCSID;

  Service Program: QTQUSF

  Default Public Authority: *USE

  Threadsafe: No

The QtqValidateCCSID() function determines if the specified CCSID is supported by the iSeries server. If the CCSID is supported, the encoding scheme for the CCSID is returned.


Authorities and Locks

None.


Parameters

CCSID
INPUT

An integer that represents the CCSID to be validated. Valid CCSID values are in the range 1 through 65535.


Return Value

If successful, QtqValidateCCSID() returns a positive integer that represents the encoding scheme of the specified CCSID. For more information on encoding schemes, see the Globalization topic in the iSeries Information Center.

If unsuccessful, QtqValidateCCSID() returns one of the following values:

0
Special purpose.

The input CCSID is a special-purpose CCSID as defined by CDRA.

-1
CCSID not found.

The input CCSID is not recognized by the system.

-2
Out of range.

The input CCSID is out of the supported range of 1 to 65535.


API introduced: V3R7
Top | National Language Support APIs | APIs by category