int QlgCvtTextDescToDesc(int InType, int OutType, char *InDescriptor, int InDescSize, char *OutDescriptor, int OutDescSize, int JobCCSID);
The QlgCvtTextDescToDesc() function converts a descriptor of text from one type (CCSID, for example) to another type (IANA name, for example). (IANA is the Internet Assigned Number Authority.)
An example of a use of this support would be to convert an IANA name of ISO-8859-1 to an i5/OS CCSID of 819. For more information see the Usage Notes.
Type of descriptor provided.
0 | CCSID |
1 | i5/OS supported CCSID |
2 | short text description |
3 | AIX 3.1 |
4 | AIX 4.1 |
5 | Windows 3.1 |
6 | Windows 95 |
7 | Windows NT |
8 | OS/2 Version 3 |
9 | OS/2 Version 4 |
10 | MVS(TM) description |
11 | IANA string |
12 | Developer Kit for Java |
13 | iSeries Default Java Encoding |
Type of descriptor requested.
0 | CCSID |
1 | i5/OS supported CCSID |
2 | short text description |
3 | AIX 3.1 |
4 | AIX 4.1 |
5 | Windows 3.1 |
6 | Windows 95 |
7 | Windows NT |
8 | OS/2 Version 3 |
9 | OS/2 Version 4 |
10 | MVS description |
11 | IANA string |
12 | Developer Kit for Java |
13 | iSeries Default Java Encoding |
The input descriptor to be converted.
The size (in bytes) of the descriptor to be converted.
The converted descriptor.
The size (in bytes) of the out descriptor area.
The CCSID that the InDescriptor and OutDescriptor are encoded in. A value of zero means to use the job's default CCSID.
If QlgCvtTextDescToDesc is not successful, the return value indicates one of the following errors:
The following is an example of the kind of information returned by this API for the possible choices. An asterisk (*) indicates that the descriptor is not supported for this CCSID.
Sample Information from the API for CCSID 00037
Descriptor type | String returned |
---|---|
CCSID | 00037 |
i5/OS Supported CCSID | 00037 |
short text description | COM_EUROPE_EBCDIC |
AIX 3.1 | IBM-037 |
AIX 4.1 | IBM-037 |
Windows 3.1 | CP00037 |
Windows 95 | * |
Windows NT | * |
OS/2 Version 3 | * |
OS/2 Version 4 | * |
MVS description | IBM-037 |
IANA string | IBM037 |
Developer Kit for Java | Cp037 |
iSeries Default Java Encoding | ISO8859_1 |
Table 2. Sample Information from the API for CCSID 00932
Descriptor type | String returned |
---|---|
CCSID | 00932 |
i5/OS Supported CCSID | 00932 |
short text description | JAPAN_MIX_PC-DATA |
AIX 3.1 | IBM-932 |
AIX 4.1 | IBM-932 |
Windows 3.1 | * |
Windows 95 | * |
Windows NT | * |
OS/2 Version 3 | CP00932 |
OS/2 Version 4 | CP00932 |
MVS description | * |
IANA string | * |
Developer Kit for Java | * |
iSeries Default Java Encoding | SJIS |
Table 3. Sample Information from the API for CCSID 00437
Descriptor type | String returned |
---|---|
CCSID | 00437 |
i5/OS Supported CCSID | 00437 |
short text description | USA_PC-DATA |
AIX 3.1 | IBM-437 |
AIX 4.1 | IBM-437 |
Windows 3.1 | CP00437 |
Windows 95 | CP00437 |
Windows NT | CP00437 |
OS/2 Version 3 | CP00437 |
OS/2 Version 4 | CP00437 |
MVS description | * |
IANA string | IBM437 |
Developer Kit for Java | Cp437 |
iSeries Default Java Encoding | ISO8859_1 |
Table 4. Sample Information from the API for CCSID 01252
Descriptor type | String returned |
---|---|
CCSID | 01252 |
i5/OS Supported CCSID | 01252 |
short text description | MS-WIN_LATIN-1 |
AIX 3.1 | * |
AIX 4.1 | * |
Windows 3.1 | CP01252 |
Windows 95 | CP01252 |
Windows NT | CP01252 |
OS/2 Version 3 | CP01252 |
OS/2 Version 4 | CP01252 |
MVS description | * |
IANA string | Windows-1252 |
Developer Kit for Java | Cp1252 |
iSeries Default Java Encoding | ISO8859_1 |
Top | National Language Support APIs | APIs by category |