COMPARE COMPARE Use the command to compare two CMS disk files of fixed-or
variable-length format on a record-for-record basis and to display
dissimilar records at the terminal. The format of the command
is: r-----T I 1 r , I COMpare I fileidl fileid2 [ (COL mm[ -] Inn '[ ) ]] I I 1 I I , I L .J
fileid is the file identifier of a file
identifiers (filename, filetype,
specified for each fileid.
to be compared.
and filemode)
All three
must be (COL mm-nn)
defines specific columns to be compared. The comparison
begins at position mm of each record. The comparison proceeds
up to and including column nne The hyphen (-) may be used in
place of a blank if the total number of characters required
for mm-nn is not more than eight (maximum parameter field
size). If column nn is specified, the hyphen may not follow
or precede a blank. If column nn is not specified, the
default ending position is the last character of each record
(the logical record length).
,. To find out whether two files are identical, enter both file
identifications, as follows:
compare testl assemble a test' assemble b Any records that do not match are displayed at the terminal.
2. To stop the display of dissimilar records, use the eMS Immediate
command HT.
3. If a file does not exist on a specified disk, that disk's read-only
extensions are also searched. The complete fileids of the files
being compared are displayed in message DMSCMP179I. DMSCMP119I COMPARING 'fn ft fm' WITH 'fn ft fm'
This message identifies the files being compared. If the files are
the same (in the columns indicated), this message is followed by
the CMS ready message. If any records do not match, the records
are displayed. When all dissimilar records have been displayed the
message DMSCMP209W is issued.
Section 2. CMS Commands 33
DMSCMP002E FILE 'fn ft frn' NOT FOUND RC=28 DMSCMP003E OPTION 'option' RC=24 DMSCMP005E NO COLUMN SPECIFIED RC=24 DMSCMP009E COLUMN 'col' EXCEEDS RECORD LENGTH RC=24 DMSCMP010E PREMATUPE EOF ON FILE 'fn ft fm' RC=40 DMSCMP011E CONFLICTING FILE FORMATS RC=32 DMSCMP019E IDENTICAL FILEIDS RC=24 DMSCMP029E INVALID 'parameter' IN THE OPTION 'COL' FIELD
RC=24 DMSCMP054E INCOMPLETE FILEID SPECIFIED RC=24 DMSCMP062E INVALID * IN FILEID RC=20 DMSCMP104S ERROR 'nnw READING FILE 'fn ft fm' FROM DISK RC=10D DMSCMP209W FILES DO NOT COMPARE RC=4 DMSCMP211E COLUMN FIELDS OUT OF SEQUENCE RC=24
34 IBM VM/370 CMS Command and Macro Reference
Previous Page Next Page