COMPARE

Compares all items in the same or different files.

Command Class

Cataloged DataBasic program

Syntax

COMPARE

Prompts

When you enter COMPARE, it displays a sequence of prompts as follows:

ENTER FIRST FILE TO COMPARE  ( [DICT] FILE-NAME )  file-specifier1
ENTER SECOND FILE TO COMPARE ( [DICT] FILE-NAME )  file-specifier2
DO YOU WANT OUTPUT TO THE PRINTER (Y/N) [Y || N]

file-specifier1 is the name of the first of the two files you want to compare.

file-specifier2 is the name of the second of the two files you want to compare.

Y Sends the report to the printer assigned to your port.

N Displays the report at the terminal.

See General Conventions for the syntax of a file specifier.

Report Contents

COMPARE generates the following information:

Comments

To compare selected items use the COMP command.

Example 1

This example uses files CW and CD listed below.

:COMPARE
ENTER FIRST FILE TO COMPARE  ( [DICT] FILE-NAME )  CW
ENTER SECOND FILE TO COMPARE ( [DICT] FILE-NAME )  CD
DO YOU WANT OUTPUT TO THE PRINTER (Y/N)  RETURN

FILE COMPARISON BETWEEN 'CW' AND 'CD'
PAGE 1   13:58:20  16 SEP 1999
-------------------------------------------------
ITEM COUNTS: 'CW': 6     'CD': 4
-------------------------------------------------
B DOES NOT MATCH
C IS MISSING FROM CD
D IS MISSING FROM CD
E DOES NOT MATCH
--- FINISHED ---
CW                                   CD
A                                    A
001 AAA                              001 AAA
002 111                              002 111
003 888                              003 888
B                                    B
001 BBB                              001 BBB
002 000                              002 010
003 555                              003 555
C
001 CCC
002 777
003 222
D
001 DDD
002 555
003 000
E                                    E
001 EEE                              001 EEEE
002 333                              002 333
003 888                              003 888
F                                    F
001 FFF                              001 FFF
002 111                              002 111
003 222                              003 222

Example 2

This example uses files TRANS and TEST,COMPTEST.

:COMPARE
ENTER FIRST FILE TO COMPARE ( [DICT] FILE-NAME ) :TEST,COMPTEST
ENTER SECOND FILE TO COMPARE ( [DICT] FILE-NAME ) :TRANS
DO YOU WANT OUTPUT TO THE PRINTER (Y/N): RETURN
FILE COMPARISON BETWEEN 'TEST' AND 'TRANS'
PAGE 1   13:58:20  16 SEP 1999
-------------------------------------------------
ITEM COUNTS: 'TEST,COMPTEST': 6     'TRANS': 4
-------------------------------------------------
--- FINISHED ---
TRANS                             TEST,COMPTEST
1234                              1234
Turbo amplifier                   Turbo amplifier
87]63]12\909\45                   87]63\12\909\45
7134]7135\7139                    7134]7135\7139
2345                              2345
Standard amplifier                Standard amplifier
693]72]44                         693]72]44
7123]7126]7129                    7123]7126]7129
3456                              3456
Turbo rectifier                   Turbo rectifier
711]31]17\65\3                    711]31]17\65\32121
7123]7129]7134                    7123]7129]7134
4567                              4567
Standard rectifier                Standard rectifier
849]32]902                        849]32]902
7125]7134]7134                    7125]7134]7134