<?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: Urgent! Why the same SAS program gives different results? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-does-the-same-SAS-program-gives-different-results/m-p/697096#M213014</link>
    <description>&lt;P&gt;One wonders why if the results are &lt;STRONG&gt;expected&lt;/STRONG&gt; to be the same why you are rerunning the "same code"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2020 10:05:29 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-11-06T10:05:29Z</dc:date>
    <item>
      <title>Why does the same SAS program gives different results?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-the-same-SAS-program-gives-different-results/m-p/697050#M212993</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just have a very urgent question. I find that my SAS program gives different results when run different times. To be concrete, when I run it in this week (for several times), all the results are the same and consistent. However, after several days, like half a month, the results will change even I don't change anywhere (the same code and computer). The program includes several macros, but I check that there is no apparent mistake.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please tell me why this happens? Is there any problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appreciate it very much for your warm help!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 11:14:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-the-same-SAS-program-gives-different-results/m-p/697050#M212993</guid>
      <dc:creator>xizidememeda</dc:creator>
      <dc:date>2020-11-06T11:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent! Why the same SAS program gives different results?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-the-same-SAS-program-gives-different-results/m-p/697057#M212996</link>
      <description>&lt;P&gt;The community is not the right place to discuss "urgent" matters. Contacting sas technical support is recommended. Because without the code and the complete logs, it is hardly possible to be of any assistance. And i am somewhat sure, that hardly anybody here has the time to analyse "several macros".&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 05:56:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-the-same-SAS-program-gives-different-results/m-p/697057#M212996</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-11-06T05:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent! Why the same SAS program gives different results?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-the-same-SAS-program-gives-different-results/m-p/697060#M212999</link>
      <description>&lt;P&gt;Same program + different results = different input data.&lt;/P&gt;
&lt;P&gt;"input data" can be datasets or files that you import, but also the result of environment-dependent functions like TODAY().&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 06:11:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-the-same-SAS-program-gives-different-results/m-p/697060#M212999</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-11-06T06:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent! Why the same SAS program gives different results?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-the-same-SAS-program-gives-different-results/m-p/697096#M213014</link>
      <description>&lt;P&gt;One wonders why if the results are &lt;STRONG&gt;expected&lt;/STRONG&gt; to be the same why you are rerunning the "same code"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 10:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-the-same-SAS-program-gives-different-results/m-p/697096#M213014</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-06T10:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent! Why the same SAS program gives different results?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-does-the-same-SAS-program-gives-different-results/m-p/697099#M213015</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/293528"&gt;@xizidememeda&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As mentioned by&amp;nbsp;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562" target="_self"&gt;KurtBremser&lt;/A&gt;, two runs of the same program on the same input datasets and raw data files can give different results because (1) certain functions or procedures do so or because of (2) changes in the environment:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Less obvious than date/time-dependent or random functions are changes of the observation order. In particular, PROC SQL can possibly deliver results in different orders if not otherwise specified. Among other things, observation order can have an impact on rounding errors in calculations (e.g., by PROC MEANS), which in turn can change the results of comparisons ("&lt;FONT face="courier new,courier"&gt;if a&amp;gt;b&lt;/FONT&gt; ...").&lt;/LI&gt;
&lt;LI&gt;The environment includes (in)format and function definitions, macros called, global macro variables, system options (e.g. SORTEQUALS), environment variables (e.g. SASAUTOS), external files, the SAS software itself (e.g. updates or hot fixes), other software involved, the operating system and programs running in parallel.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;If I had to investigate this and no changes in the environment were known, my first step would be a thorough comparison of the log files. Needless to say, there must be no errors etc. Has the documented number of observations or variables changed anywhere? If not, I would pick one particular value which has changed significantly and trace it back meticulously all the way to the input data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 10:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-does-the-same-SAS-program-gives-different-results/m-p/697099#M213015</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-11-06T10:22:30Z</dc:date>
    </item>
  </channel>
</rss>

