SQL/MP Programming Manual for COBOL

Character Processing Rules (CPRL) Procedures
HP NonStop SQL/MP Programming Manual for COBOL529758-003
11-19
CPRL_GETUPSHIFTTABLE_
cprladdr pic S9(9) input
is a pointer to the SQL collation or collation object.
CPRL_GETUPSHIFTTABLE_
The CPRL_GETUPSHIFTTABLE_ procedure extracts upshift information from an SQL
collation or collation object.
The CPRL_GETUPSHIFTTABLE_ procedure returns these error codes:
array pic X(256) output
is a 256-byte array specified by the user.
If the call is successful, CPRL_GETUPSHIFTTABLE_ sets each byte in array to
the upshifted version of the corresponding character code in the SQL collation or
collation object.
If the call is unsuccessful, array is not modified.
cprladdr pic S9(9) input
is a pointer to the SQL collation or collation object.
CPRL_INFO_
The CPRL_INFO_ procedure returns information about an SQL collation or collation
object. (The SQL CREATE COLLATION statement uses this procedure to determine
the characteristics of SQL collations.)
ENTER TAL "CPRL_GETUPSHIFTTABLE_" USING
array,
cprladdr
GIVING errorcode.
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.
ENTER TAL "CPRL_INFO_" USING
cprladdr
[ , cprlsize ]
[ , is1to1 ]
[ , lengtheningfactor ]
[ , characterset ]
[ , version ]
GIVING errorcode.