Previous Topic: SyntaxNext Topic: MEMBER


Parameters

MATCHED supports the following parameters:

ddname

The one to eight-character ddname of the sequential file in which all of the MATCHED records are written.

ALL

Optional parameter. All matched records, whether the record originates in the old or new file, will be written to the ddname.

NEW

Optional parameter. Only matched records from the new file will be written to the ddname. This is the default value.

OLD

Optional parameter. Only matched records from the old file will be written to the ddname.

Example

This example syntax writes the new file's records that match the sequential file referenced by ddname MTCHRECS.

COMPARE
MATCHED(MTCHRECS)