SQL/MP Programming Manual for COBOL

Character Processing Rules (CPRL) Procedures
HP NonStop SQL/MP Programming Manual for COBOL529758-003
11-17
CPRL_GETNUMTABLE_
nextstring pic X(nextstringmaxlength) output
is an array in which CPRL_GETNEXTINSEQUENCE_ returns the next string.
Overlapping inputstring and nextstring causes unpredictable results.
nextstringmaxlength pic S9(4) input
specifies the maximum length of nextstring. The returned value is padded with
blanks as necessary to fill nextstring for this length. In most cases, set
nextstring to the same value as inputstring.
nextstringlength pic S9(4) output
specifies the number of bytes of nextstring that were scanned. (If
CPRL_GETNEXTINSEQUENCE_ is successful, nextstringlength and
nextstringmaxlength are equal.)
CPRL_GETNEXTINSEQUENCE_ pads nextstring with blanks up to
nextstringmaxlength, and nextstringlength is the length of nextstring
up to the point where the blank begin (nextstringlength should also be the
same as inputstringlength).
cprladdr pic S9(9) input
is a pointer to the SQL collation or collation object.
CPRL_GETNUMTABLE_
The CPRL_GETNUMTABLE_ procedure extracts numeric character class information
from an SQL collation or collation object.
The CPRL_GETNUMTABLE_ procedure returns these error codes:
ENTER TAL "CPRL_GETNUMTABLE_" 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.