SEARCH Examples
Example 1:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ABCXXXGHIJ |
|
|
|
|
|
|
123··· |
|
|
|
|
|
|
12345XXX |
|
|
|
|
|
|
1XXX5 |
|
|
|
|
|
|
·3 |
|
|
|
|
|
|
·1 |
|
| |||||
|
|
|
|
|
|
·3 |
|
|
| ||||
The EQUAL (or ZERO) Condition Flag is set. A match did not occur in ITEM2 because the Logical String of KEYFIELD was longer than 2 bytes.
Example 2:
|
|
|
|
|
|
|
|
|
|
|
|
|
ABCDEFGXXX |
|
|
|
|
|
|
123GXXX |
|
|
|
|
|
|
12345XXX |
|
|
|
|
|
|
GXXX5 |
|
|
|
|
|
|
·3 |
|
|
|
|
|
|
··3 |
|
| |||||
|
|
|
|
|
|
··0 |
|
|
| ||||
The OVER Condition Flag is set. The Logical Strings for ITEM1 and ITEM2 (GX) were too small and the Logical String for ITEM3 (XXX5) did not match.
![]() |