Previous Topic: KeywordsNext Topic: Syntax


SELRECIF, AND, OR

The SELRECIF keyword lets you select specific records, depending on the selection criteria. Once the record meets the selection criteria, the record is acted on by the command, for example, COPY, PRINT, and so forth, 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.