Ready to process request -------------------------- 200 Hello "", you have reached the database server. Request Line: D3REF XML.AP.DOC.CAT 0 Line Size: 23 ContentLength: 0 Variable Strg: 400 Request OK. Final Status: 600 Request Complete -------------------------- Ready to process request -------------------------- 200 Hello "", you have reached the database server. Request Line: D3REF XML.AP.DOC 17 Line Size: 20 ContentLength: 17 Variable Strg: 300 OK, Ready to recieve 17 bytes of data. Final Status: 600 Request Complete -------------------------- - D3 Online Reference: Pick Help Verb: Access/TCL

Command Verb: Access/TCL
Applicable release versions: AP, R83
Category TCL (746)
Description compares items line-by-line to find which lines have been inserted, deleted or changed.

"compare" produces a comparative listing of each item in the specified itemlist, indicating where differences occur between the source and target item{s}.

Status characters:

"d" Indicates a deleted line.

"i" Indicates an inserted line.
Syntax compare file.reference itemlist* {(options)}
with:{(file.reference} itemlist
Options a Compares all elements on each attribute. The default is the first three elements, delimited with blanks (assembler source general format).

b Compares entire first value of attribute. If not specified, only the first three words are compared. This option is used to compare assembly object code.

c Combines output into one-column format, rather than two-column "split-screen" format.

d Does not compare object code addresses. This is intended for compiled assembly language programs.

f Issues a form-feed between each item; Starts display of each item on a new page.

i Suppresses the message, "[409] item not on file".

n Activates nopage function on output to the terminal.

o Compares entire attribute, except for the first value. This is used to compare assembly object code by comparing the entire attribute except for the first value and first subvalue within each value.

p Directs output to system printer, via the Spooler.

s Suppresses display of identical items. (R83)

s Suppresses display of item-ids; This is available only with the z option. (AP)

t Uses tape as source file. Must be in t-dump format and positioned at the correct file. (R83)

z Lists only lines with differences and displays item-ids only of identical items.
compare entity 12345 (zsa
with: (entity,archive 12345

compare bp count (a)
with: count.2

bp count                bp count.2
1 *Count from 1-10      1 *Count from 1-10
D   2 equ tem to 10
I                       2 ten = 10
3 for i = 1 to ten      3 for i = 1 to ten
4   print i             4   print i
5 next i                5 next i
6 print                 6 print
7 end                   7 end
8                       8
Related tcl.filecomp