Performing actions repetitively

Use the REPEAT action to execute the preceding pattern and its associated action set repetitively until the pattern fails to match.

When you use the REPEAT action, the REPEAT statement must be the last action statement in the action set. The REPEAT statement is valid after a CALL statement. The action set must include one or more actions that change the objects of the pattern test or an indefinite loop results.

In the following example, the pattern action set changes the types of all operands with class A to the unknown alpha class (?) after converting the input value to the standard value::

*A
COPY_A [1] temp
RETYPE [1] ? temp temp
REPEAT

In this example, the pattern action set calls the Parsing_Rules subroutine until the user variable data is empty:

[data != ""]
CALL Parsing_Rules
REPEAT

You can see an example of the Parsing_Rules subroutine in the USNAME rule set. In the Designer client repository view, expand the Standardization Rules folder. Expand USA domain folder.