Previous Topic: ParametersNext Topic: Syntax


SELMEMIF, AND, OR

The SELMEMIF keyword lets you select specific members, depending on the selection criteria. Once the member meets the selection criteria, the member is acted on by the command, for example COPY and PRINT, and any subordinate keywords are processed. If the keyword MEMBER is also supplied, the two keywords are ANDed together. A member is only selected if it meets both of the MEMBER and SELMEMIF conditions.

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

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

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