![]() |
S Comparison of Column Ranges
S [-] [n] ,:col1-col2: r :col3:
From the first record displayed on the screen to the start or end of the file, the contents of the column range specified by :col1-col2: is compared to the columns beginning at :col3:. The window will be positioned at the first record in which a match is found between the two column ranges. A Search command to find the next occurence will automatically be provided in the Command field. Pressing the ENTER key (sending the prepared Search command) will continue the search.
- Backward search: The search will proceed from the first record displayed in the window towards the beginning of the file.
Standard: Search towards the end of the file.
n Number of records which should be examined.
Standard: no limit on the number of records.
col1 Start column of the first range.
col2 End column of the first range.
r = | > | < | -
= the contents of the column ranges must match.
> the contents of the first column range must be greater than the contents of the second column range.
< the contents of the first column range must be less than the contents of the second column range.
-= the contents of the first column range must not equal the contents of the second column range.
Standard: =
Notes:
Both column ranges must be fully contained within the record. If a range extends beyond the end of the record, CFS will flag a mismatch.
Comparison of column ranges can be linked with further search conditions by the "+" and "," operators, as can be done when searching for character strings. For further information, see the section entitled "Search for Character Strings (Multiple Search Arguments)".
Examples:
S,:1-20:=:101:
The contents of the first 20 bytes of each record will be compared to the contents of the columns from 101 to 120. A hit will be registered if a match is found.
S,:1-1:>:12:
The contents of the first column of each record will be compared with the contents of column 12. A hit will be registered if the contents of column 1 are greater than the contents of column 12.