<?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 Filling the missing dates in column in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Filling-the-missing-dates-in-column/m-p/322470#M71337</link>
    <description>&lt;P&gt;I would like to fill in for missing dates in the following data. Additionally, I would like to&lt;/P&gt;&lt;P&gt;keep the former value of the wt-variable on the filled in dates. The first part went well while I have&lt;/P&gt;&lt;P&gt;problems with the last step. Variations over lags have not worked */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2017 20:07:52 GMT</pubDate>
    <dc:creator>terjeph</dc:creator>
    <dc:date>2017-01-04T20:07:52Z</dc:date>
    <item>
      <title>Filling the missing dates in column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filling-the-missing-dates-in-column/m-p/322470#M71337</link>
      <description>&lt;P&gt;I would like to fill in for missing dates in the following data. Additionally, I would like to&lt;/P&gt;&lt;P&gt;keep the former value of the wt-variable on the filled in dates. The first part went well while I have&lt;/P&gt;&lt;P&gt;problems with the last step. Variations over lags have not worked */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 20:07:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filling-the-missing-dates-in-column/m-p/322470#M71337</guid>
      <dc:creator>terjeph</dc:creator>
      <dc:date>2017-01-04T20:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Filling the missing dates in column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filling-the-missing-dates-in-column/m-p/322475#M71339</link>
      <description>&lt;P&gt;Using lags it best to make them unconditional. You have placed a lag cal within multiple IF clauses.&lt;/P&gt;
&lt;P&gt;Better would be BEFORE all of the if:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lagwt = Lag(wt);&lt;/P&gt;
&lt;P&gt;then replace your&lt;/P&gt;
&lt;P&gt;wt= lag(wt)&lt;/P&gt;
&lt;P&gt;with&lt;/P&gt;
&lt;P&gt;wt = lagwt;&lt;/P&gt;
&lt;P&gt;and then drop the Lagwt variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that another function similar to lag is DIF.&amp;nbsp; So you can address Dif(daymonthyear) in the same manner as Lag, with the&amp;nbsp;same warning about conditional use.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 20:19:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filling-the-missing-dates-in-column/m-p/322475#M71339</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-04T20:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filling the missing dates in column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filling-the-missing-dates-in-column/m-p/322483#M71343</link>
      <description>Thanks! Worked well!</description>
      <pubDate>Wed, 04 Jan 2017 20:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filling-the-missing-dates-in-column/m-p/322483#M71343</guid>
      <dc:creator>terjeph</dc:creator>
      <dc:date>2017-01-04T20:29:15Z</dc:date>
    </item>
  </channel>
</rss>

