<?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: a quick question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/DIF-function-order/m-p/466309#M118972</link>
    <description>&lt;P&gt;Order of operations. If you set it missing and then calculate it, it has a value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you calculate it, know it’s wrong then set to missing it’s fine, then it stays missing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DIF like LAG is a queue function&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/phuse/2011/cc/CC08.pdf" target="_blank"&gt;https://www.lexjansen.com/phuse/2011/cc/CC08.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/172014"&gt;@okaka23&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;data four;&lt;BR /&gt;set two;&lt;BR /&gt;by x;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;diff=dif(total);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00FF00"&gt;if first.x then diff=.;&lt;/FONT&gt;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why i cannot put this way? any difference ? thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;data four;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;set two;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;by x;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#00FF00"&gt;if first.x then diff=.;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;&lt;SPAN&gt;diff=dif(total);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 May 2018 04:42:18 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-05-31T04:42:18Z</dc:date>
    <item>
      <title>DIF function order</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DIF-function-order/m-p/466303#M118969</link>
      <description>&lt;P&gt;data four;&lt;BR /&gt;set two;&lt;BR /&gt;by x;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;diff=dif(total);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00FF00"&gt;if first.x then diff=.;&lt;/FONT&gt;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why i cannot put this way? any difference ? thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;data four;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;set two;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;by x;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#00FF00"&gt;if first.x then diff=.;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;&lt;SPAN&gt;diff=dif(total);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 04:42:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DIF-function-order/m-p/466303#M118969</guid>
      <dc:creator>okaka23</dc:creator>
      <dc:date>2018-05-31T04:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: a quick question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/DIF-function-order/m-p/466309#M118972</link>
      <description>&lt;P&gt;Order of operations. If you set it missing and then calculate it, it has a value.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you calculate it, know it’s wrong then set to missing it’s fine, then it stays missing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DIF like LAG is a queue function&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/phuse/2011/cc/CC08.pdf" target="_blank"&gt;https://www.lexjansen.com/phuse/2011/cc/CC08.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/172014"&gt;@okaka23&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;data four;&lt;BR /&gt;set two;&lt;BR /&gt;by x;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;diff=dif(total);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#00FF00"&gt;if first.x then diff=.;&lt;/FONT&gt;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why i cannot put this way? any difference ? thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;data four;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;set two;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;by x;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#00FF00"&gt;if first.x then diff=.;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;&lt;SPAN&gt;diff=dif(total);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 04:42:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/DIF-function-order/m-p/466309#M118972</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-31T04:42:18Z</dc:date>
    </item>
  </channel>
</rss>

