COMPARE Command

The COMPARE command compares items within files and highlights differences and insertions.

Format

COMPARE [DICT] filename {* | item-list} (options)

WITH: [([DICT] filename)] {item-list}

Parameter(s)

options

The following options are supported:

C

Allows lines beginning with an asterisk (comment lines) to be included in the COMPARE.

E

Do not display the item-IDs of items that are identical. Should be used with the Z option.

H

Highlights the first mismatching character for each block that mismatches.

L

Generates an active select-list containing a list of items that are different.

Q

Do not display different lines. Should be used with the Z and L options.

T

Allows text to be compared. The T

Z

Do not display identical lines.

Description

When you execute the COMPARE command line, the system returns a WITH: prompt at which you insert the additional required parameters.

Example

The following example compares all items from file1 with all matching items from file2:

COMPARE file1 *

>WITH: file2

The following example compares item1 with item2 when where both items are from file1:

COMPARE file1 item1

>WITH: item2