Return values

Return values, which are integer values that Enrichment stores in the system variable %%RV, provide data that supplements the answer returned from the function call. The data stored in the return value (if any) depends on the function. For example, the return value from the FINDZIP function identifies what type of ZIP Code™ was found (ZIP, ZIP + 4®, or ZIP+4+2). Enrichment stores the actual ZIP Code™ in the value returned by the function. As the example below shows, you can use the %%RV system variable in the rule file in the same way you use the %%RC system variable.
%%ZIP = FINDZIP(%%ADDRESS)   /*FIND ZIP CODE, */
IF %%RV = 5 THEN             /*OUTSORT 5 Digit  */
  <OUTPUT> 5DIGIT
ELSE
 <OUTPUT> ZIP4
ENDIF

Some functions do not produce return values because they do not produce supplemental results. For example, the TIME function does not produce a %%RV value.