TRUTHSET Declaration

The TRUTHSET declaration associates an identifier with a set of characters. From the characters in a TRUTHSET declaration, the compiler builds a truth set table, which is used in a truth set test to determine whether a given character is a member of that group of characters. The identifier can then be used in a SCAN statement to scan while or until any character in the truth set occurs.

The identifier also can appear as a condition in a REPLACE statement, so that replacement takes place while or until any character in the truth set occurs.

<truth set declaration>

             ┌◄─────────────────────── , ──────────────────────┐
── TRUTHSET ─┴─<identifier>── ( ──<membership expression>── ) ─┴───────┤

<truth set identifier>

An identifier that is associated with a membership expression in a TRUTHSET declaration.