HP-UX SNAplus2 CSV Programmer's Guide

Common Service Verbs Reference
GET_CP_CONVERT_TABLE
Chapter 2 59
GET_CP_CONVERT_TABLE
The GET_CP_CONVERT_TABLE verb creates and returns a 256-byte
conversion table to translate character strings from a source code page to
a target code page. If a character from the source code page does not exist
in the target code page, the translated (target) string differs from the
original (source) string.
A code page is a table that associates specific ASCII or EBCDIC values
with specific characters. It is used to provide a national language variant
of ASCII or EBCDIC which supports characters specific to that language.
For a list of code pages supported by SNAplus2 and the national
languages for which they are used, see “Supported Code Pages”.
VCB Structure
struct get_cp_convert_table
{
unsigned short opcode; /* Verb identifying operation code. */
unsigned char opext; /* Verb extension code - reserved. */
unsigned char reserv2; /* Reserved. */
unsigned short primary_rc; /* Primary return code from verb. */
unsigned long secondary_rc; /* Secondary (qualifying) return code. */
unsigned short source_cp; /* Source code page for conversion table.*/
unsigned short target_cp; /* Target code page for conversion table.*/
For HP-UX systems:
unsigned char *conv_tbl_addr; /* Address to put conversion table at.*/
For Windows systems:
unsigned char far *conv_tbl_addr; /* Address to put conversion table at.*/
For all systems:
unsigned char char_not_fnd; /* Character not found option: either */
/* substitute character or round trip.*/
unsigned char substitute_char; /* Substitute character to use. */
};
Supplied Parameters
The program using this verb supplies the following parameters:
opcode