Previous Topic: ParametersNext Topic: Syntax


MATCHED

The MATCHED keyword specifies the output file to which the matched records are written. It is only valid with the COMPARE command and can be used twice per command.

With COMPARE PROGRAM, the file must have a variable blocked record format with a maximum record length of at least 2048 bytes.

Because a COMPARE can be done for only a portion of the record by using the POSITION keyword, it is possible that records that are considered matched in the COMPARE are different somewhere else on the record. In this case, the old and new record can be written to separate files using the OLD and NEW parameters. Both records are written to the file if ALL is specified.