The SELECT and VERIFY conditions control which data set records are accessed using the remap. The SELECT condition controls which records are retrieved, and the VERIFY condition controls which records are stored.
The following diagram illustrates the syntax for the SELECT and VERIFY conditions:
<SELECT/VERIFY condition>
┌◄────────────────── , ─────────────────┐ ──┴─┬─/1\─ SELECT <Boolean expression> ─┬─┴────────────────────────────┤ └─/1\─ VERIFY <Boolean expression> ─┘
The following table explains the elements of the syntax diagram:
Example
There are two SELECT/VERIFY conditions in this example. The first selects records where X is greater than 0 (zero) and verifies that X is less than 100; the second verifies that X is greater than 0 (zero) and less than 100.
D DATA SET ( A ALPHA(5); B BOOLEAN; N NUMBER(S5,2); P REAL; ) VERIFY P GEQ 0; R REMAPS D ( A; X = N; P; ) SELECT X > 0 AND X < 100, VERIFY X > 0 AND X < 100;