![]() |
COMP Compare
F=c-fld x off1[=off2]/len [: off1[=off2]/len ] [ ... ]
Compare-Fields. By entering c-fld, it is possible to exclude one or more fields contained in the files name1 and name2 from the comparison. Alternatively, it is possible to restrict the comparison to the specified fields. By excluding column ranges, the amount of virtual memory needed for the comparison is reduced.
x + | -
+ only the fields specified hereafter should be compared.
- the fields specified hereafter should be excluded from the comparison.
off1 Offset of the field to be compared in file name1, relative to the beginning of the record. An offset of 0 indicates the first byte of the record, or the first byte of the record length field (L=Y, see page 7-).
off2 Offset of the field to be compared in file name2. If off2 is not specified, then off1=off2.
len Length of the comparison field.
Multiple field definitions can be specified. The first field definition must begin with '+' or '-', and is then valid for all further fields. The colon ':' should be used as a delimiter between the individual field definitions.
Standard: no Compare-Fields. The entire record is used for the comparison. Exceptions under certain circumstances can be the ISAM key (parameter K=N), as well as the record length field (parameter L=N).