HP-UX SNAplus2 CSV Programmer's Guide
Common Service Verbs Reference
CONVERT
Chapter 2 41
CONVERT
The CONVERT verb translates an ASCII character string to EBCDIC or
an EBCDIC character string to ASCII.
The string to be converted is called the source string. The converted
string is called the target string.
VCB Structure
struct convert
{
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 char direction; /* Direction of conversion - ASCII to */
/* EBCDIC or vice-versa. */
unsigned char char_set; /* Character set to use for the */
/* conversion A, AE, or user-defined G. */
unsigned short len; /* Length of string to be converted. */
For HP-UX systems:
unsigned char *source; /* Pointer to string to be converted. */
unsigned char *target; /* Address to put converted string at. */
For Windows systems:
unsigned char far *source; /* Pointer to string to be converted. */
unsigned char far *target; /* Address to put converted string at. */
};
Supplied Parameters
The program using this verb supplies the following parameters:
opcode
SV_CONVERT
direction
Possible values are:
SV_ASCII_TO_EBCDIC
Convert from ASCII to EBCDIC
characters.