SQL/MP Programming Manual for COBOL

Character Processing Rules (CPRL) Procedures
HP NonStop SQL/MP Programming Manual for COBOL529758-003
11-13
CPRL_GETCHARCLASSTABLE_
CPRL_GETCHARCLASSTABLE_
The CPRL_GETCHARCLASSTABLE_ procedure extracts character class information
from an SQL collation or collation object for a user-specified character class.
The CPRL_GETCHARCLASSTABLE_ 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_GETCHARCLASSTABLE_ sets each byte in array as follows:
If the call is unsuccessful, array is not modified.
cprladdr pic S9(9) input
is a pointer to the SQL collation or collation object.
classname pic X(classnamelength) input
is the name of the user-specified character class.
classnamelength pic S9(4) input
is the length of classname in bytes.
ENTER TAL "CPRL_GETCHARCLASSTABLE_" USING
array,
cprladdr,
classname,
classnamelength,
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.
–5 The user-specified character class does not exist in the specified SQL collation or
collation object.
1 The corresponding character code in the SQL collation or collation object
is in the character class specified by classname.
0 The corresponding character code in the SQL collation or collation object
is not in the specified character class.