Previous Topic: KeywordsNext Topic: Syntax


SELRECIF, AND, OR

Use the SELRECIF keyword to select specific records according to selection criteria. Once the record meets the selection criteria, the record is acted on by the command, and subordinate keywords are processed.

The AND/OR keywords are only valid immediately following the SELRECIF keyword, as well as the IF, SKIPRECIF, and SELMEMIF keywords.

When a SELRECIF keyword immediately follows another SELRECIF/AND/OR keyword, the second SELRECIF is treated like an AND statement.

When SELRECIFs are separated by actions, subsequent SELRECIFs are not subordinate to the previous SELRECIF. The last action and the STOP keyword subordinate to a SELRECIF/AND/OR ends the SELRECIF/AND/ORs actions.