SQL/MP Programming Manual for C
Character Processing Rules (CPRL) Procedures
HP NonStop SQL/MP Programming Manual for C—429847-008
11-13
CPRL_GETCHARCLASSTABLE_
The CPRL_GETALPHATABLE_ procedure returns these values: 
array
is a 256-byte array specified by the user. If the call is successful, 
CPRL_GETALPHATABLE_ sets each byte in array as follows:
If the call is unsuccessful, array is not modified. 
cprladdr
is a pointer to the SQL collation or collation object.
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 values: 
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. 
1 The corresponding character code in the SQL collation or collation object 
is in the ALPHAS character class. 
0 The corresponding character code in the SQL collation or collation object 
is not in the ALPHAS character class. 
#include <cextdecs(CPRL_GETCHARCLASSTABLE_)>
short CPRL_GETCHARCLASSTABLE_ ( 
 char *array /* o */
 ,long cprladdr  /* i */
 ,char *classname /* i */ 
 ,short classnamelength ); /* i */
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. 










