Previous Topic

Next Topic

Book Contents

Book Index

WHEN Blocks

Each WHEN and its parameters (including STOP criteria) form a WHEN statement. Single WHEN statements can be linked together by the AND and/or OR parameters (note, for future use) to form a compound WHEN statement. (See "Compound WHEN Statements" below.)

WHEN statements and subsequent DO statements form a WHEN block. Each EXECUTE block that does not contain an ON DATA statement must contain at least one WHEN block.

Figure 279 Compound WHEN Statements

If the WHEN statement criteria are satisfied, the DO statements in that WHEN block are performed. If the string specified in a WHEN statement occurs more than once in the searchable column range of a line, system variable SYSSRCHALL determines whether the DO statements are performed only once or as many times as the search string occurs. See Summary of System Variables for a description of this system variable.

Parent Topic

WHEN: Rule Definition Structure