With the set vector step, you can manage values of local or global COLLECT type vector variables and digits obtained by the collect step using the following digit string operations and mathematical functions:
Operation |
Description |
Arithmetic operations |
ADD |
To add value 1 to value 2. |
SUB |
To subtract value 2 from value 1. |
MUL |
To multiply value 1 by value 2. |
DIV |
To divide value 1 by value 2. |
Digit string operations |
CATR |
To concatenate the digit string of value 2 to the right end of value 1 digit string. For example, if you configure set digits = A CATR B, where variable A value is 2345 and variable B value is 1, the Routing Core Server assigns the value of 23451 to digits in the digit buffer. |
CATL |
To concatenate the digit string of value 2 to the left end of value 1 digit string. For example, if you configure set digits = A CATL B, where variable A value is 2345 and variable B value is 1, the Routing Core Server assigns the value of 12345 to digits in the digit buffer. |
MOD10 |
To check string lengths using the Modulus 10 algorithm. You can also use the MOD10 operation to validate account numbers and credit card numbers. After performing the MOD10 operation, the Routing Core Server assigns the following value to digits from the digit buffer:
0: Digits in value 1 match the length specified in value 2 and passed the Modulus 10 validation.
1 through 9: The digit string, account number, or credit card number is complete but not valid.
#: The digit string, account number, or credit card number did not pass the Modulus 10 validation. For example, the digit string in value 1 does not match the length specified in value 2.
|
SEL |
To select the rightmost number of digits specified in value 2 from the digit string of value 1. For example, if you configure set digits = A SEL B, where variable A value is 2345 and variable B value is 2, the Routing Core Server assigns the value of 45 to digits in the digit buffer. |