<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Compare files with checksum and differences in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654832#M18529</link>
    <description>Hi Tina,&lt;BR /&gt;&lt;BR /&gt;MD5 algorithm is one of the most common scheme used to calculate checksum other than XOR. Please refer the OpenVMS FAQ from the below link. I would suggest you to use MD5 algorithm instead of default XOR.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.uni-giessen.de/faq/archiv/dec-faq.vms.part1-11/msg00003.html" target="_blank"&gt;http://www.uni-giessen.de/faq/archiv/dec-faq.vms.part1-11/msg00003.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ketan&lt;BR /&gt;</description>
    <pubDate>Wed, 30 Jun 2010 07:34:29 GMT</pubDate>
    <dc:creator>Shriniketan Bhagwat</dc:creator>
    <dc:date>2010-06-30T07:34:29Z</dc:date>
    <item>
      <title>Compare files with checksum and differences</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654823#M18520</link>
      <description>Shanghai Stock Exchange customer compared two RMS files with recovery unit journaling named FTNTSPAR_NEW.RUJ, FTNTSPAR_OLD.RUJ with the checksum and differences. &lt;BR /&gt;&lt;BR /&gt;They found the two files are same by “checksum” ( used default XOR ):&lt;BR /&gt;&lt;BR /&gt;$ checksum FTNTSPAR_NEW.RUJ  &lt;BR /&gt;$ show sym checksum$checksum&lt;BR /&gt;  CHECKSUM$CHECKSUM = "796545170"&lt;BR /&gt;$ checksum FTNTSPAR_OLD.RUJ&lt;BR /&gt;$ show sym checksum$checksum&lt;BR /&gt;  CHECKSUM$CHECKSUM = "796545170"&lt;BR /&gt;&lt;BR /&gt;But when they used command “diff”, they found some of differences:&lt;BR /&gt;They asked why?&lt;BR /&gt;&lt;BR /&gt;I used different ALGORITHM qualify with checksum command CRC, MD5 and default XOR get the different checksum result:&lt;BR /&gt;&lt;BR /&gt;$ checksum/ALGORITHM=MD5 FTNTSPAR_NEW.RUJ&lt;BR /&gt;$ show sym checksum$checksum&lt;BR /&gt;  CHECKSUM$CHECKSUM = "8CE744016224B055BCA2B88C67D85F81"&lt;BR /&gt;&lt;BR /&gt;$ checksum/ALGORITHM=MD5 FTNTSPAR_old.ruj&lt;BR /&gt;$ show sym checksum$checksum&lt;BR /&gt;  CHECKSUM$CHECKSUM = "F8268D402A770F0B56D6422AA3795020"&lt;BR /&gt;&lt;BR /&gt;$ checksum/ALGORITHM=CRC FTNTSPAR_NEW.RUJ                                      &lt;BR /&gt;$ show sym checksum$checksum&lt;BR /&gt;  CHECKSUM$CHECKSUM = "7F88743C"&lt;BR /&gt;&lt;BR /&gt;$ checksum/ALGORITHM=CRC FTNTSPAR_old.RUJ&lt;BR /&gt;$ show sym checksum$checksum&lt;BR /&gt;  CHECKSUM$CHECKSUM = "98378C08"&lt;BR /&gt;&lt;BR /&gt;Could you tell me: &lt;BR /&gt;1.what kind of algorithm we should be used for RMS files with recovery unit journaling?&lt;BR /&gt;2. What is the main different with the command “differences” and “checksum”?&lt;BR /&gt;3. Dose the “differences” just compare with the text file? &lt;BR /&gt;4. When we intend to compare two files what is the rule we should to follow to use to compare files?&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!&lt;BR /&gt;Best Regards,&lt;BR /&gt;Tina&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jun 2010 06:17:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654823#M18520</guid>
      <dc:creator>Liu Tina</dc:creator>
      <dc:date>2010-06-30T06:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Compare files with checksum and differences</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654824#M18521</link>
      <description>Hi Tina,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; used default XOR &lt;BR /&gt;Looks like the XOR algorithm used by VMS CHECKSUM can get a collision in&lt;BR /&gt;which case even though the files are different they can end up having the same&lt;BR /&gt;checksum value.&lt;BR /&gt;&lt;BR /&gt;Check the following link for discussion on a similar topic -&lt;BR /&gt;&lt;A href="http://www.mofeel.net/1152-comp-os-vms/3903.aspx" target="_blank"&gt;http://www.mofeel.net/1152-comp-os-vms/3903.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Murali</description>
      <pubDate>Wed, 30 Jun 2010 06:49:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654824#M18521</guid>
      <dc:creator>P Muralidhar Kini</dc:creator>
      <dc:date>2010-06-30T06:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Compare files with checksum and differences</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654825#M18522</link>
      <description>&lt;!--!*#--&gt;&amp;gt; But when they used command "diff", they&lt;BR /&gt;&amp;gt; found some of differences:&lt;BR /&gt;&amp;gt; They asked why?&lt;BR /&gt;&lt;BR /&gt;What did you tell them?  I'd tell them that&lt;BR /&gt;it's probably because the files differ.  If&lt;BR /&gt;your files contain more bits than the&lt;BR /&gt;checksum, then it must be possible to have&lt;BR /&gt;two files which have the same checksum.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://en.wikipedia.org/wiki/Checksum" target="_blank"&gt;http://en.wikipedia.org/wiki/Checksum&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 1. [...]&lt;BR /&gt;&lt;BR /&gt;Used for what, exactly?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 2. [...]&lt;BR /&gt;&lt;BR /&gt;DIFFERENCES compares two files.  CHECKSUM&lt;BR /&gt;calculates a checksum for a file.&lt;BR /&gt;&lt;BR /&gt;      HELP CHECKSUM&lt;BR /&gt;      HELP DIFFERENCES&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 3. [...]&lt;BR /&gt;&lt;BR /&gt;DIFFERENCES compares the two files which you&lt;BR /&gt;tell it to compare.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 4. [...]&lt;BR /&gt;&lt;BR /&gt;It depends on why you wish to compare them.&lt;BR /&gt;&lt;BR /&gt;If you wish to be certain that two files&lt;BR /&gt;differ (or not) then you should compare them.&lt;BR /&gt;For large files, this may take a long time.&lt;BR /&gt;Comparing checksums may be faster, but is&lt;BR /&gt;less certain.  (If the checksums differ, then&lt;BR /&gt;the files differ.  If the checksums match,&lt;BR /&gt;then the files are unlikely to differ, where&lt;BR /&gt;the meaning of "unlikely" depends on the data&lt;BR /&gt;in the files, and on the checksum algorithm&lt;BR /&gt;used).&lt;BR /&gt;&lt;BR /&gt;You left out BACKUP /COMPARE.</description>
      <pubDate>Wed, 30 Jun 2010 06:57:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654825#M18522</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-06-30T06:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compare files with checksum and differences</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654826#M18523</link>
      <description>Hi Tina,&lt;BR /&gt;&lt;BR /&gt;I carried out a simple test and was able to see a same checksum values for&lt;BR /&gt;two different backup savesets.&lt;BR /&gt;&lt;BR /&gt;Check the attachment for the logs.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Murali</description>
      <pubDate>Wed, 30 Jun 2010 07:01:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654826#M18523</guid>
      <dc:creator>P Muralidhar Kini</dc:creator>
      <dc:date>2010-06-30T07:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Compare files with checksum and differences</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654827#M18524</link>
      <description>&lt;!--!*#--&gt;&amp;gt; Looks like the XOR algorithm used by VMS&lt;BR /&gt;&amp;gt; CHECKSUM can get a collision [...]&lt;BR /&gt;&lt;BR /&gt;Which algorithm can _never_ get a collision?&lt;BR /&gt;&lt;BR /&gt;How many different 32-bit checksums are&lt;BR /&gt;possible?  How many different 33-bit files&lt;BR /&gt;are possible?</description>
      <pubDate>Wed, 30 Jun 2010 07:01:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654827#M18524</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-06-30T07:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Compare files with checksum and differences</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654828#M18525</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] was able to see a same checksum&lt;BR /&gt;&amp;gt; values for two different backup savesets.&lt;BR /&gt;&lt;BR /&gt;      HELP BACKUP /CRC&lt;BR /&gt;&lt;BR /&gt;If your files contains their own checksums,&lt;BR /&gt;then you might get more collisions than you&lt;BR /&gt;would otherwise, depending on which&lt;BR /&gt;algorithm(s) you use.</description>
      <pubDate>Wed, 30 Jun 2010 07:05:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654828#M18525</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-06-30T07:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compare files with checksum and differences</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654829#M18526</link>
      <description>Hi Tina,&lt;BR /&gt;&lt;BR /&gt;I have seen, now a days more use of /ALGORITHM=MD5 qualifier when calculating the checksum of a file. Even for HP PCSI kits /ALGORITHM=MD5 is used to calculate the checksum. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ketan&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jun 2010 07:09:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654829#M18526</guid>
      <dc:creator>Shriniketan Bhagwat</dc:creator>
      <dc:date>2010-06-30T07:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Compare files with checksum and differences</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654830#M18527</link>
      <description>Hi Tina,&lt;BR /&gt;&lt;BR /&gt;Here is the VMS help on checksum.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://mx.isti.cnr.it/cgi-bin/conan?key=CHECKSUM&amp;amp;explode=yes&amp;amp;title=VMS%20Help&amp;amp;referer=" target="_blank"&gt;http://mx.isti.cnr.it/cgi-bin/conan?key=CHECKSUM&amp;amp;explode=yes&amp;amp;title=VMS%20Help&amp;amp;referer=&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ketan&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jun 2010 07:14:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654830#M18527</guid>
      <dc:creator>Shriniketan Bhagwat</dc:creator>
      <dc:date>2010-06-30T07:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Compare files with checksum and differences</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654831#M18528</link>
      <description>The customer intend to know if that two files are same or different. They used checksum, it said the files are same. Then they used DCL command "differences". The out put of differences are:&lt;BR /&gt;&lt;BR /&gt;HST103$ diff FTNTSPAR_OLD.RUJ FTNTSPAR_NEW.RUJ&lt;BR /&gt;&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  134   CNSH05190010OC?  OCOC  @å  ç ·E?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  135   CNSH05190010OD?  ODOD  @å  ç ·E?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  134   CNSH05190010OC?  OCOC  @å  ç ·E?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  135   CNSH05190010OD?  ODOD  @å  ç ·E?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  138   CNSH05190036OC?  OCOC  ç½  èµ E?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  139   CNSH05190036OD?  ODOD  ç½  èµ E?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  138   CNSH05190036OC?  OCOC  ç½  èµ E?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  139   CNSH05190036OD?  ODOD  ç½  èµ E?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  142   CNSH05190051OC?  OCOC  `ç  ç ·E?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  143   CNSH05190051OD?  ODOD  `ç  ç ·E?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  142   CNSH05190051OC?  OCOC  `ç  ç ·E?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  143   CNSH05190051OD?  ODOD  `ç  ç ·E?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  146   CNSH05190077OC?  OCOC     èµ E?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  147   CNSH05190077OD?  ODOD     èµ E?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  146   CNSH05190077OC?  OCOC     èµ E?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  147   CNSH05190077OD?  ODOD     èµ E?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  150   CNSH05190085OC?  OCOC   wî  é  ?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  151   CNSH05190085OD?  ODOD   wî  é  ?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  150   CNSH05190085OC?  OCOC   wî  é  ?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  151   CNSH05190085OD?  ODOD   wî  é  ?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  154   CNSH05190119OC?  OCOC  ?î °é  ?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  155   CNSH05190119OD?  ODOD  ?î °é  ?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  154   CNSH05190119OC?  OCOC  ?î °é  ?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  155   CNSH05190119OD?  ODOD  ?î °é  ?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  158   CNSH05190135OC?  OCOC  ç½  èµ E?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  159   CNSH05190135OD?  ODOD  ç½  èµ E?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  158   CNSH05190135OC?  OCOC  ç½  èµ E?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  159   CNSH05190135OD?  ODOD  ç½  èµ E?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  162   CNSH05190176OC?  OCOC  ç½  èµ E?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  163   CNSH05190176OD?  ODOD  ç½  èµ E?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  162   CNSH05190176OC?  OCOC  ç½  èµ E?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  163   CNSH05190176OD?  ODOD  ç½  èµ E?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  166   CNSH05190184OC?  OCOC   wî  é  ?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  167   CNSH05190184OD?  ODOD   wî  é  ?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  166   CNSH05190184OC?  OCOC   wî  é  ?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  167   CNSH05190184OD?  ODOD   wî  é  ?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  173   CNSH05190291OC?  OCOC  ç½  èµ E?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  174   CNSH05190291OD?  ODOD  ç½  èµ E?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  173   CNSH05190291OC?  OCOC  ç½  èµ E?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  174   CNSH05190291OD?  ODOD  ç½  èµ E?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  177   CNSH05190879OC?  OCOC  ?î °é  ?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  178   CNSH05190879OD?  ODOD  ?î °é  ?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  177   CNSH05190879OC?  OCOC  ?î °é  ?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  178   CNSH05190879OD?  ODOD  ?î °é  ?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  181   CNSH05191000OC?  OCOC     èµ E?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  182   CNSH05191000OD?  ODOD     èµ E?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  181   CNSH05191000OC?  OCOC     èµ E?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  182   CNSH05191000OD?  ODOD     èµ E?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  185   CNSH05191802OC?  OCOC  ç  î ¸é  ?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  186   CNSH05191802OD?  ODOD  ç  î ¸é  ?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  185   CNSH05191802OC?  OCOC  ç  î ¸é  ?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  186   CNSH05191802OD?  ODOD  ç  î ¸é  ?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  189   CNSH05191810OC?  OCOC  â ¬?ç ·E?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  190   CNSH05191810OD?  ODOD  â ¬?ç ·E?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  189   CNSH05191810OC?  OCOC  â ¬?ç ·E?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  190   CNSH05191810OD?  ODOD  â ¬?ç ·E?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  193   CNSH05193006OC?  OCOC  â ¬?ç ·E?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  194   CNSH05193006OD?  ODOD  â ¬?ç ·E?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  193   CNSH05193006OC?  OCOC  â ¬?ç ·E?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  194   CNSH05193006OD?  ODOD  â ¬?ç ·E?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  197   CNSH05195084OC?  OCOC   wî  é  ?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  198   CNSH05195084OR?  OROR   wî  é  ?  @Gç ¢G?         ?      ?       é &amp;nbsp;H                                                        &lt;BR /&gt;  199   CNSH05195084OT?  OTOT   wî  é  ?  @Gç ¢G?         ?      ?       é &amp;nbsp;H                                                        &lt;BR /&gt;  200   CNSH05195183OC?  OCOC  ç½  èµ E?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  201   CNSH05195183OR?  OROR  ç½  èµ E?  @Gç ¢G?         ?      ?       é &amp;nbsp;H                                                        &lt;BR /&gt;  202   CNSH05195183OT?  OTOT  ç½  èµ E?  @Gç ¢G?         ?      ?       é &amp;nbsp;H                                                        &lt;BR /&gt;  203   CNSH05195191OC?  OCOC  ?î °é  ?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  204   CNSH05195191OD?  ODOD  ?î °é  ?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  197   CNSH05195084OC?  OCOC   wî  é  ?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  198   CNSH05195084OR?  OROR   wî  é  ?  @Gç ¢G?         ?      ?       é &amp;nbsp;H                                                        &lt;BR /&gt;  199   CNSH05195084OT?  OTOT   wî  é  ?  @Gç ¢G?         ?      ?       é &amp;nbsp;H                                                        &lt;BR /&gt;  200   CNSH05195183OC?  OCOC  ç½  èµ E?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  201   CNSH05195183OR?  OROR  ç½  èµ E?  @Gç ¢G?         ?      ?       é &amp;nbsp;H                                                        &lt;BR /&gt;  202   CNSH05195183OT?  OTOT  ç½  èµ E?  @Gç ¢G?         ?      ?       é &amp;nbsp;H                                                        &lt;BR /&gt;  203   CNSH05195191OC?  OCOC  ?î °é  ?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  204   CNSH05195191OD?  ODOD  ?î °é  ?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  207   CNSH05196660OC?  OCOC  â ¬?ç ·E?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  208   CNSH05196660OR?  OROR  â ¬?ç ·E?  @Gç ¢G?         ?      ?       é &amp;nbsp;H                                                        &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  207   CNSH05196660OC?  OCOC  â ¬?ç ·E?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  208   CNSH05196660OR?  OROR  â ¬?ç ·E?  @Gç ¢G?         ?      ?       é &amp;nbsp;H                                                        &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  212   CNSH05196900OC?  OCOC  ç  î ¸é  ?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  213   CNSH05196900OD?  ODOD  ç  î ¸é  ?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  212   CNSH05196900OC?  OCOC  ç  î ¸é  ?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  213   CNSH05196900OD?  ODOD  ç  î ¸é  ?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  216   CNSH05196926OC?  OCOC     èµ E?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  217   CNSH05196926OD?  ODOD     èµ E?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  216   CNSH05196926OC?  OCOC     èµ E?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  217   CNSH05196926OD?  ODOD     èµ E?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  220   CNSH05199938OC?  OCOC   wî  é  ?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  221   CNSH05199938OD?  ODOD   wî  é  ?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  220   CNSH05199938OC?  OCOC   wî  é  ?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  221   CNSH05199938OD?  ODOD   wî  é  ?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  224   CNSH05199953OC?  OCOC  ?î °é  ?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  225   CNSH05199953OD?  ODOD  ?î °é  ?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  224   CNSH05199953OC?  OCOC  ?î °é  ?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  225   CNSH05199953OD?  ODOD  ?î °é  ?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;************&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1&lt;BR /&gt;  228   CNSH05199979OC?  OCOC  `% èµ E?  @Gç ¢G?         ç ¢      ç ¢       é &amp;nbsp;H                                                        &lt;BR /&gt;  229   CNSH05199979OD?  ODOD  `% èµ E?  @Gç ¢G?                                                                                     &lt;BR /&gt;******&lt;BR /&gt;File TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;  228   CNSH05199979OC?  OCOC  `% èµ E?  @Gç ¢G?         ç ¢      ç ¢      `auH                                                        &lt;BR /&gt;  229   CNSH05199979OD?  ODOD  `% èµ E?  @Gç ¢G?                                                                                     &lt;BR /&gt;************&lt;BR /&gt;&lt;BR /&gt;Number of difference sections found: 22&lt;BR /&gt;Number of difference records found: 28&lt;BR /&gt;&lt;BR /&gt;DIFFERENCES /IGNORE=()/MERGED=1-&lt;BR /&gt;    TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_OLD.RUJ;1-&lt;BR /&gt;    TEMP01$:[HP_MSE.CHECKSUM]FTNTSPAR_NEW.RUJ;1&lt;BR /&gt;&lt;BR /&gt;HST103$ lo&lt;BR /&gt;&lt;BR /&gt;  SYSTEM       logged out at 29-JUN-2010 13:45:00.50&lt;BR /&gt;I have put these two files into HP Lab:&lt;BR /&gt;RX66B 16.157.8.68, located in :&lt;BR /&gt;&lt;BR /&gt;$ sh def&lt;BR /&gt;&lt;BR /&gt;  SYS$SYSROOT:[SYSMGR.TEST.CHECKSUM]&lt;BR /&gt;&lt;BR /&gt;  =   SYS$SYSROOT:[SYSMGR.TEST.CHECKSUM]&lt;BR /&gt;&lt;BR /&gt;$ dir */size/date=(c,m)&lt;BR /&gt;&lt;BR /&gt;Directory SYS$SYSROOT:[SYSMGR.TEST.CHECKSUM]&lt;BR /&gt;&lt;BR /&gt;FTNTSPAR_NEW.RUJ;1      4848  23-JUN-2010 17:50:27.71  23-JUN-2010 17:50:27.79&lt;BR /&gt;&lt;BR /&gt;FTNTSPAR_OLD.RUJ;1      4848  23-JUN-2010 17:50:20.29  23-JUN-2010 17:50:20.50&lt;BR /&gt;&lt;BR /&gt;Total of 2 files, 9696 blocks.&lt;BR /&gt;&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;Please feel free to do your test on this OpenVMS module (16.157.8.68, system/newmanager)&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!&lt;BR /&gt;Tina&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jun 2010 07:20:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654831#M18528</guid>
      <dc:creator>Liu Tina</dc:creator>
      <dc:date>2010-06-30T07:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Compare files with checksum and differences</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654832#M18529</link>
      <description>Hi Tina,&lt;BR /&gt;&lt;BR /&gt;MD5 algorithm is one of the most common scheme used to calculate checksum other than XOR. Please refer the OpenVMS FAQ from the below link. I would suggest you to use MD5 algorithm instead of default XOR.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.uni-giessen.de/faq/archiv/dec-faq.vms.part1-11/msg00003.html" target="_blank"&gt;http://www.uni-giessen.de/faq/archiv/dec-faq.vms.part1-11/msg00003.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ketan&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jun 2010 07:34:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654832#M18529</guid>
      <dc:creator>Shriniketan Bhagwat</dc:creator>
      <dc:date>2010-06-30T07:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Compare files with checksum and differences</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654833#M18530</link>
      <description>Hi Tina,&lt;BR /&gt;&lt;BR /&gt;MD5 is a more secure digest or hash or signature algorithm than is the CHECKSUM XOR. I would use MD5 algorithm instead of default XOR. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.faqs.org/rfcs/rfc1321.html" target="_blank"&gt;http://www.faqs.org/rfcs/rfc1321.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Ketan&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jun 2010 07:50:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654833#M18530</guid>
      <dc:creator>Shriniketan Bhagwat</dc:creator>
      <dc:date>2010-06-30T07:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Compare files with checksum and differences</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654834#M18531</link>
      <description>Ok, I'm addressing a few different issues here.  The differences (and which there isn't enough detail for a determination yet), and whether this is an integrity check, or whether there are any requirements for cryptographic security here.&lt;BR /&gt;&lt;BR /&gt;XOR can easily report duplicates, and it's trivial to create cases where it will return dups; to adjust the XOR value to match rwhatever you want. &lt;BR /&gt;&lt;BR /&gt;MD5 is better than XOR against "innocent" and against accidental changes.  It's a decent integrity check.  &lt;BR /&gt;&lt;BR /&gt;The MD5 digest is not cryptographically secure, having been broken some years ago.  This security as differentiated from integrity.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.kb.cert.org/vuls/id/836068" target="_blank"&gt;http://www.kb.cert.org/vuls/id/836068&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;As for (better, more secure) alternatives, OpenVMS has an OpenSSL port installed as part of the CDSA component, and that offers the SHA1 digest.&lt;BR /&gt;&lt;BR /&gt;OpenSSL is expressly intended to create and to later verify cryptographic signatures; it's intended to create and sign and verify and perform related security tasks.&lt;BR /&gt;&lt;BR /&gt;(The VMS OpenSSL documentation is a tad cryptic, no pun intended.  But I digress.)&lt;BR /&gt;&lt;BR /&gt;The command to create a digest (on Unix) is: &lt;BR /&gt;&lt;BR /&gt;openssl dgst -sha1 {file}&lt;BR /&gt;&lt;BR /&gt;There's probably also a sha1sum port around for VMS, and that and OpenSSL are intended to produce identical results.&lt;BR /&gt;&lt;BR /&gt;Getting back to the underlying question from the stock exchange, the checksum and MD5 stuff being discussed here akin to the "check engine" light on the dashboard of a car.  It tells the driver that there's something out of spec or wrong, but not what. &lt;BR /&gt;&lt;BR /&gt;As for the details of this case and of the files involved, a hexadecimal file dump and a careful look at the byte-level differences will be warranted.   This could well be a file transfer error, for instance.  But without seeing what the file construction and the data and the history of the data (eg: network ftp transfers, etc) might be, the immediate trigger for the differences isn't clear.  &lt;BR /&gt;&lt;BR /&gt;That there's good reason here for the digests to be different is adamantly clear.</description>
      <pubDate>Wed, 30 Jun 2010 11:24:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654834#M18531</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2010-06-30T11:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Compare files with checksum and differences</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654835#M18532</link>
      <description>&lt;!--!*#--&gt;&amp;gt; The customer intend to know if that two&lt;BR /&gt;&amp;gt; files are same or different. They used&lt;BR /&gt;&amp;gt; checksum, it said the files are same.&lt;BR /&gt;&lt;BR /&gt;Read carefully:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] (If the checksums differ, then&lt;BR /&gt;&amp;gt; the files differ.  If the checksums match,&lt;BR /&gt;&amp;gt; then the files are unlikely to differ, where&lt;BR /&gt;&amp;gt; the meaning of "unlikely" depends on the data&lt;BR /&gt;&amp;gt; in the files, and on the checksum algorithm&lt;BR /&gt;&amp;gt; used).&lt;BR /&gt;&lt;BR /&gt;Is some part of that unclear?&lt;BR /&gt;&lt;BR /&gt;Matching checksums is NOT proof that the&lt;BR /&gt;files are the same.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; How many different 32-bit checksums are&lt;BR /&gt;&amp;gt; possible?  How many different 33-bit files&lt;BR /&gt;&amp;gt; are possible?&lt;BR /&gt;&lt;BR /&gt;Think about it.</description>
      <pubDate>Wed, 30 Jun 2010 12:06:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654835#M18532</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-06-30T12:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Compare files with checksum and differences</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654836#M18533</link>
      <description>Could you tell me: &lt;BR /&gt;&lt;BR /&gt;1.what kind of algorithm we should be used for RMS files with recovery unit journaling?&lt;BR /&gt;&lt;BR /&gt;DIFFERENCE ... if the file is used with record access and not raw bytes.&lt;BR /&gt;&lt;BR /&gt;But what is really needed, and why do you mention that they are marked for RU? Why do you think that is relevant (it may be).&lt;BR /&gt;Is the need for a checksum or for a difference indicator?&lt;BR /&gt;&lt;BR /&gt;This is a highly confusing question to me.&lt;BR /&gt;&lt;BR /&gt;Is the intend to compare data files which happened to me marked for RU journaling and have a name to reflect that, or are these the actual RMS RUJ files used to store RU data into? RMS RUJ files are transient and non-transportable and I see little point in looking at them at all (expect maybe in a QA setting).&lt;BR /&gt;&lt;BR /&gt;What is in the files themselves, and how is the data bing used? &lt;BR /&gt;&lt;BR /&gt;If it use in RECORD mode, such as DIFF uses, then the tool should probably used RECORD access and NOT look at all the bits in the blocks (Convert, areas pre-allocation in indexed files, padding bytes for odd sized record in sequential files), &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; 2. What is the main different with the command â  differencesâ   and â  checksumâ  ?&lt;BR /&gt;&lt;BR /&gt;Differences needs the original and will do a byte by byte withing the normal data records bytes, ignoring meta data (if any). &lt;BR /&gt;It is the most reliable comparison, and you weapon of choice ... IF you have the original handy.&lt;BR /&gt;&lt;BR /&gt;If you need to compare all bytes, then use backup/compar, or temporarily change the two file attributes to SEQ/FIX/512.&lt;BR /&gt;&lt;BR /&gt;Checksum just creates a lucky number and depending on the data contents that may be an unlucky number.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; 3. Dose the â  differencesâ   just compare with the text file? &lt;BR /&gt;&lt;BR /&gt;Binary or text.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; 4. When we intend to compare two files what is the rule we should to follow to use to compare files?&lt;BR /&gt;&lt;BR /&gt;The main rule is to actually know what you are trying to accomplish.&lt;BR /&gt;Verify a file transfer? (Copy, NFS, FTP, backup)&lt;BR /&gt;Verify a processing run output?&lt;BR /&gt;Verify a transform and back, such as ZIP + UNZIP or BACKUP into a SAVESET and BACK?&lt;BR /&gt;&lt;BR /&gt;From the questions you posted so far, I'd recommend DIFF and if you needed just a single lucky number then make it be CHECKSUM/ALGO=CRC.&lt;BR /&gt;The latter may gave false differences much like backup/compate, but that's probably better than the false equal that you proved to suffer with CHECKSUM/FILE.&lt;BR /&gt;&lt;BR /&gt;The data must have had some XOR in there, to make the checksum XOR generate the same value every time.... or you an operational error slipped by.&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;HvdH Performance Consulting.&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jun 2010 13:59:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654836#M18533</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2010-06-30T13:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Compare files with checksum and differences</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654837#M18534</link>
      <description>Tina,&lt;BR /&gt;&lt;BR /&gt;  Consider, in simple terms, the XOR checksum sees the file as a stream of longwords. You just XOR them together, getting a 32 bit result. A lot of the time, any simple change in the file will result in a different checksum, but as Steven has noted a few times, the mathematics mean that there must be a very large number of possible files which generate the same checksum.&lt;BR /&gt;&lt;BR /&gt;  In particular, the XOR takes no account of the position of a record in a file. Therefore, take the XOR checksum of any file of any size with records in random order. Now reorder the file any way you like. As long as you don't add, remove or change any records, the checksum will be the same. Same data, different sequence, same checksum. I suspect this may be the case with your files (Try DIFF/PARALLEL - it may make things clearer)&lt;BR /&gt;&lt;BR /&gt;  Other checksum algorithms may calculate different values for reordered files, but the mathematics says there MUST be multiple files which generate the same checksum.&lt;BR /&gt;&lt;BR /&gt;  Since both DIFF and CHECKSUM, of any algorithm, both read the whole contents of both files, there's no performance benefit to using CHECKSUM, and, as you've noticed, you get false negatives. If you want to know that two files are identical, use DIFF. Indeed, I'd suggest you write a simple program which avoids all the clever resynch logic of DIFF, just read the two files byte by byte until you reach EOF or find a difference. If all you want to know is "same/different" you can stop reading on the first difference. I'd also do a preliminary check on file size, obviously files that are different sizes are different!&lt;BR /&gt;&lt;BR /&gt;(for the pedants... I think the above is really only true for records which are multiples of 32 bits, perhaps XOR wraps? I tested with VMS$PASSWORD_DICTIONARY. Checksums were the same for the indexed file, the same file converted to sequential, and the same file sorted descending).</description>
      <pubDate>Wed, 30 Jun 2010 20:59:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654837#M18534</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2010-06-30T20:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Compare files with checksum and differences</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654838#M18535</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] there's no performance benefit to&lt;BR /&gt;&amp;gt; using CHECKSUM [...]&lt;BR /&gt;&lt;BR /&gt;There is if the files are in different&lt;BR /&gt;places, with a slow network connection&lt;BR /&gt;between them.  Using CHECKSUM allows one to&lt;BR /&gt;send the (small) checksum over the (slow)&lt;BR /&gt;network instead of the whole (large) file.&lt;BR /&gt;&lt;BR /&gt;Even if all the files are local, if one&lt;BR /&gt;wishes to make multiple comparisons against&lt;BR /&gt;one file, then it can be faster to get a&lt;BR /&gt;checksum for that file than to read it again&lt;BR /&gt;for every comparison.&lt;BR /&gt;&lt;BR /&gt;As usual, everything's complicated.&lt;BR /&gt;&lt;BR /&gt;And, in this case, CHECKSUM may buy you&lt;BR /&gt;nothing but confusion (especially if you&lt;BR /&gt;don't understand how a checksum works).</description>
      <pubDate>Wed, 30 Jun 2010 21:47:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654838#M18535</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-06-30T21:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Compare files with checksum and differences</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654839#M18536</link>
      <description>My checksum test consisted of two simple text files.&lt;BR /&gt;&lt;BR /&gt;File1:&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;&lt;BR /&gt;File2:&lt;BR /&gt;2&lt;BR /&gt;1&lt;BR /&gt;&lt;BR /&gt;Both have the same checksum.</description>
      <pubDate>Wed, 30 Jun 2010 21:48:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654839#M18536</guid>
      <dc:creator>RBrown_1</dc:creator>
      <dc:date>2010-06-30T21:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Compare files with checksum and differences</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654840#M18537</link>
      <description>Did everyone notice that the DIFFERENCES output that Tina listed at 8:20pm varied only in a few bytes (4 ?) near the end of the record?  &lt;BR /&gt;&lt;BR /&gt;I'm not sure how that played out in calculating the CHECKSUM but I did notice that there were 28 different records, suggesting that for the bytes in question we had 14 pairs of XOR's.  It looks like they were on the same values each time, which I think would mean the pairs of XORs would negate each other and therefore produce the same results.&lt;BR /&gt;&lt;BR /&gt;Checksum is a crude tool.  Differences is better and in this case I'd use without prioducing any output and a check of $SEVERITY afterwards.&lt;BR /&gt;&lt;BR /&gt;I find the CMS DIFFERENCES command to be even better and it can be used on normal files, rather than CMS generations, if you have the appropriate license.</description>
      <pubDate>Wed, 30 Jun 2010 23:13:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654840#M18537</guid>
      <dc:creator>John McL</dc:creator>
      <dc:date>2010-06-30T23:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Compare files with checksum and differences</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654841#M18538</link>
      <description>JG&amp;gt;I'd suggest you write a simple program which avoids all the clever resynch &lt;BR /&gt;JG&amp;gt;logic of DIFF, just read the two files byte by byte until you reach EOF &lt;BR /&gt;JG&amp;gt;or find a difference. If all you want to know is "same/different" you can &lt;BR /&gt;JG&amp;gt;stop reading on the first difference. &lt;BR /&gt;&lt;BR /&gt;While not as streamlined as a single purpose program, you can tell difference to short circuit on the first difference.&lt;BR /&gt; &lt;BR /&gt;$ DIFFERENCES/MAX_DIFFERENCES=1/OUT=NL: file1 file2&lt;BR /&gt;&lt;BR /&gt;does essentially what John describes, but on a record level, not a byte level.  Just check $severity, if $severity .eqs.  "1", then the files' record contents were the same, otherwise different.&lt;BR /&gt;&lt;BR /&gt;JG&amp;gt;I'd also do a preliminary check on file size, obviously files that &lt;BR /&gt;JG&amp;gt;are different sizes are different!&lt;BR /&gt;&lt;BR /&gt;This is a good optimization if the files are being compared on a byte-by-byte basis.  It would also work for files with sequential organization, that have the same record format, otherwise you can get false positives (the records are the same, but the size of the files are different, in other words, differences/max=1/out=nl: would return $severity = "1" but the sizes would be different.&lt;BR /&gt;&lt;BR /&gt;Jon&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Jul 2010 03:45:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/compare-files-with-checksum-and-differences/m-p/4654841#M18538</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2010-07-01T03:45:54Z</dc:date>
    </item>
  </channel>
</rss>

