VMS Help  —  DIFFERENCES  Examples
    1.$ DIFFERENCES EXAMPLE.TXT
      ************
      File DISK1:[CHRIS.TEXT]EXAMPLE.TXT;2
          1   DEMONSTRATION
          2   OF V7.3 DIFFERENCES
          3   UTILITY
      ******
      File DISK1:[CHRIS.TEXT]EXAMPLE.TXT;1
          1   DEMONSTRETION
          2   OF VMS DIFFERENCES
          3   UTILITY
      ************
      Number of difference sections found: 1
      Number of difference records found: 2
      DIFFERENCES/ IGNORE=()/MERGED=1-
             DISK1:[CHRIS.TEXT]EXAMPLE.TXT;2-
             DISK1:[CHRIS.TEXT]EXAMPLE.TXT;1

      In this example, the DIFFERENCES command compares the contents
      of the two most recent versions of the file EXAMPLE.TXT in the
      current default directory. The DIFFERENCES command compares
      every character in every record and displays the results at the
      terminal.

    2.$ DIFFERENCES/WIDTH=80/MODE=(HEX,ASCII) EXAMPLE.TXT/CHANGE_BAR
      ************
      File DISK1:[CHRIS.TEXT]EXAMPLE.TXT;2
          1 ! DEMONSTRATION
          2 ! OF V7.3 DIFFERENCES
          3   UTILITY
      ************
      ************
      File DISK1:[CHRIS.TEXT]EXAMPLE.TXT;2
      RECORD NUMBER 1 (00000001) LENGTH 14 (0000000E)  ***CHANGE***
           204E 4F495441 5254534E 4F4D4544 DEMONSTRATION .. 000000
      RECORD NUMBER 2 (00000002) LENGTH 19 (00000013)  ***CHANGE***
       4E455245 46464944 20302E33 5620464F OF V7.3 DIFFEREN 000000
                                    534543 CES............. 000010
      RECORD NUMBER 3 (00000003) LENGTH 7 (00000007)
                           595449 4C495455 UTILITY......... 000000
      ************
      Number of difference sections found: 1
      Number of difference records found: 2
      DIFFERENCES /WIDTH=80/MODE=(HEX,ASCII)
             DISK1:[CHRIS.TEXT]EXAMPLE.TXT;2/CHANGE_BAR-
             DISK1:[CHRIS.TEXT]EXAMPLE.TXT;1

      The DIFFERENCES command compares the same files as in
      Example 1, but lists the differences in both hexadecimal and
      ASCII formats. The command also specifies that default change
      bars be used in the output. The default change bar notation for
      the hexadecimal output is ***CHANGE***. For the ASCII output,
      the default change bar character is the exclamation point.

    3.$ DIFFERENCES/OUTPUT BOSTON::DISK2:TEST.DAT OMAHA::DISK1:[PGM]TEST.DAT

      The DIFFERENCES command compares two remote files and displays
      any differences found. The first file is TEST.DAT on remote
      node BOSTON. The second file is also named TEST.DAT on remote
      node OMAHA. The DIFFERENCES output is located in the file
      DISK1:[PGM]TEST.DIF.
Close Help