<?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: Different results in local vs. remote submitted calculations. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Different-results-in-local-vs-remote-submitted-calculations/m-p/162036#M31459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that a significant difference to you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the fuzz option in proc compare.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Mar 2014 17:20:36 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2014-03-31T17:20:36Z</dc:date>
    <item>
      <title>Different results in local vs. remote submitted calculations.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Different-results-in-local-vs-remote-submitted-calculations/m-p/162035#M31458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to optimise some SAS code and part of this involves submitting it to a server which will run it faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having an issue though when using proc compare to confirm that I am still getting the same results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's an example from the proc compare output;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;obs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; difference&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif';"&gt;19922&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -0.0400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.939E-18&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both of the values appear the same but SAS is saying that there is a minute difference between the two values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've looked at the options both locally and on the server and I think that it has something to do with these two variables;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;locally;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif';"&gt;SYSSIZEOFLONG 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif';"&gt;SYSMAXLONG 2147483647&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;server;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif';"&gt;SYSSIZEOFLONG 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif';"&gt;SYSMAXLONG 9007199254740992&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;Would anyone be able to tell me if I'm heading in the right direction with this or be able to offer a solution?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif';"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in advance for any help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 17:16:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Different-results-in-local-vs-remote-submitted-calculations/m-p/162035#M31458</guid>
      <dc:creator>FatCaptain</dc:creator>
      <dc:date>2014-03-31T17:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Different results in local vs. remote submitted calculations.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Different-results-in-local-vs-remote-submitted-calculations/m-p/162036#M31459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that a significant difference to you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the fuzz option in proc compare.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 17:20:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Different-results-in-local-vs-remote-submitted-calculations/m-p/162036#M31459</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-03-31T17:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Different results in local vs. remote submitted calculations.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Different-results-in-local-vs-remote-submitted-calculations/m-p/162037#M31460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like the difference is within rounding error.&amp;nbsp; Things to check are&lt;/P&gt;&lt;P&gt;1) Make sure you are using LENGTH=8 for this variable so that SAS is not truncating the values when it writes it to disk.&lt;/P&gt;&lt;P&gt;2) Are the two systems using the same floating point representation? For example if the remote is an IBM mainframe then it will store floating point numbers differently than a Windows machine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 17:20:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Different-results-in-local-vs-remote-submitted-calculations/m-p/162037#M31460</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-03-31T17:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Different results in local vs. remote submitted calculations.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Different-results-in-local-vs-remote-submitted-calculations/m-p/162038#M31461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that the server and the client is different OS and/or bit (32/64), yes, there could be tiny differences.&lt;/P&gt;&lt;P&gt;But print out your difference in decimals:&lt;/P&gt;&lt;P&gt;0.00000000000000006939&lt;/P&gt;&lt;P&gt;I don't know what kind of data you have, but unless you are nuclear scientist or something similar, you could probably live with this difference.&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/techsup/technote/ts230.html" title="http://support.sas.com/techsup/technote/ts230.html"&gt;TS-DOC: TS-230 - Dealing with Numeric Representation Error in SAS Applications&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/techsup/technote/ts654.pdf" title="http://support.sas.com/techsup/technote/ts654.pdf"&gt;http://support.sas.com/techsup/technote/ts654.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings11/275-2011.pdf" title="http://support.sas.com/resources/papers/proceedings11/275-2011.pdf"&gt;http://support.sas.com/resources/papers/proceedings11/275-2011.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 17:26:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Different-results-in-local-vs-remote-submitted-calculations/m-p/162038#M31461</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-03-31T17:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Different results in local vs. remote submitted calculations.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Different-results-in-local-vs-remote-submitted-calculations/m-p/162039#M31462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The syssizeoflong is new at 9.3. &lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/62978/HTML/default/viewer.htm#mcrolrefwhatsnew93.htm" title="http://support.sas.com/documentation/cdl/en/mcrolref/62978/HTML/default/viewer.htm#mcrolrefwhatsnew93.htm"&gt;SAS(R) 9.3 Macro Language: Reference&lt;/A&gt; (what is new)&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostunx/63053/HTML/default/viewer.htm#n16qiuy9np34a6n1pzjzn9943v7f.htm" title="http://support.sas.com/documentation/cdl/en/hostunx/63053/HTML/default/viewer.htm#n16qiuy9np34a6n1pzjzn9943v7f.htm"&gt;SAS(R) 9.3 Companion for UNIX Environments&lt;/A&gt; servers are mostly installed at 64-bit and your desktop still at 32-bit. That is the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linus has already referred to the floating point details, that is the reason for this normal differences.&lt;/P&gt;&lt;P&gt;Reez has given the Fuzz option with compare als this behavior is known but&amp;nbsp; should be managed with knowledge on how to.&lt;BR /&gt;case solved.....&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Mar 2014 18:00:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Different-results-in-local-vs-remote-submitted-calculations/m-p/162039#M31462</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-03-31T18:00:21Z</dc:date>
    </item>
  </channel>
</rss>

