An undefined pattern variable was encountered.

#2097   Compile-time error

An undefined pattern variable was encountered.

Additional Information

The pattern variable is 'X'.

Recovery

Compilation continues but no compiled source code file will be saved.

Explanation

A pattern variable can be accessed in an another subpattern, a '%x' format item, or a pattern test only if some text has been saved into that variable. Also, the pattern variable access must appear in the same rule in which it was saved, if it was saved in a find or translate rule. If the text was saved in the pattern part of a match alternative of a DO SCAN or REPEAT SCAN action, the pattern variable access may appear only within that same match alternative. It becomes unspecified at the end of such a match alternative.