User-Defined Variables

You can assign variables in the rule file or at the command line using the U switch. For more information about assigning variables at the command line, see Running an Application.

Variable assignments have the following form:

%%variable = expression

The simplest expression is just to reference another variable. For example:

%%barcode2 = %%barcode1

Enrichment supports a large variety of more complicated expressions. These fall into three groups: string expressions, numeric expressions, and logical expressions.

Note: Numeric values in Enrichment cannot be more than 9 digits long. If you need to handle longer numbers, you can use the SUBSTR function to break up the number into smaller workable parts.