SQL/MP Programming Manual for COBOL

Character Processing Rules (CPRL) Procedures
HP NonStop SQL/MP Programming Manual for COBOL529758-003
11-20
CPRL_INFO_
The CPRL_INFO_ procedure returns these error codes:
cprladdr pic S9(9) input
is a pointer to the SQL collation or collation object.
cprlsize pic S9(4) output
is the length in bytes of the SQL collation or collation object.
is1to1 pic S9(4) output
is set as follows:
lengtheningfactor pic S9(4) output
specifies the maximum lengthening that encodings can cause. (That is, for a
specified string, the encoding is not more than lengtheningfactor times the
original string length. For SQL collations or collation objects that preserve (or
shorten) the length on encoding, lengtheningfactor is 1.)
characterset pic S9(4) output
specifies the character set assumed by the SQL collation or collation object:
version pic S9(4) output
is the format version of the SQL collation or collation object.
Code Description
0 The operation was successful.
–2 The SQL collation or collation object is invalid.
–4 The version of the SQL collation or collation object is not supported.
–20 The user-specified buffer is not large enough to receive the returned string.
1 The encoding for this SQL collation or collation object is a one-to-one
map.
0 The encoding is not a one-to-one map.
0
101
102
103
104
UNKNOWN
ISO88591
ISO88592
ISO88593
ISO88594
105
106
107
108
109
ISO88595
ISO88596
ISO88597
ISO88598
ISO88599