<?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: How to fill the gap between two observations in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-fill-the-gap-between-two-observations/m-p/425596#M281169</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input ID$ DATE:yymmdd10. Variable;
format DATE yymmdd10.;
datalines;
01 2000/01/01 5
01 2000/01/02 .
01 2000/01/03 .
01 2000/01/04 .
01 2000/01/05 .
01 2000/02/15 .
01 2000/02/16 7
;

data want;
   update have(obs=0) have;
   by ID;
   output;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 07 Jan 2018 15:30:07 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2018-01-07T15:30:07Z</dc:date>
    <item>
      <title>How to fill the gap between two observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-fill-the-gap-between-two-observations/m-p/425591#M281168</link>
      <description>&lt;P&gt;How to replace the "missing value ." between 2000/01/02 and 2000/02/15 with the value "5" on 2000/01/01?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID&amp;nbsp; &amp;nbsp; &amp;nbsp;DATE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Variable&lt;/P&gt;
&lt;P&gt;01&amp;nbsp; &amp;nbsp;2000/01/01&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&lt;/P&gt;
&lt;P&gt;01&amp;nbsp; &amp;nbsp;2000/01/02&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&lt;/P&gt;
&lt;P&gt;01&amp;nbsp; &amp;nbsp;2000/01/03&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&lt;/P&gt;
&lt;P&gt;01&amp;nbsp; &amp;nbsp;2000/01/04&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&lt;/P&gt;
&lt;P&gt;01&amp;nbsp; &amp;nbsp;2000/01/05&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&lt;/P&gt;
&lt;P&gt;.................&lt;/P&gt;
&lt;P&gt;01&amp;nbsp; &amp;nbsp;2000/02/15&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&lt;/P&gt;
&lt;P&gt;01&amp;nbsp; &amp;nbsp;2000/02/16&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming that there are many ID like '01' and many case like missing value between 2000/01/02 and 2000/02/15. Is there any efficient way to replace these missing value with the most recently available value like '5' in this case before new value like '7' is available?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jan 2018 15:07:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-fill-the-gap-between-two-observations/m-p/425591#M281168</guid>
      <dc:creator>ZZB</dc:creator>
      <dc:date>2018-01-07T15:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill the gap between two observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-fill-the-gap-between-two-observations/m-p/425596#M281169</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input ID$ DATE:yymmdd10. Variable;
format DATE yymmdd10.;
datalines;
01 2000/01/01 5
01 2000/01/02 .
01 2000/01/03 .
01 2000/01/04 .
01 2000/01/05 .
01 2000/02/15 .
01 2000/02/16 7
;

data want;
   update have(obs=0) have;
   by ID;
   output;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 07 Jan 2018 15:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-fill-the-gap-between-two-observations/m-p/425596#M281169</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-01-07T15:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill the gap between two observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-fill-the-gap-between-two-observations/m-p/425606#M281171</link>
      <description>&lt;P&gt;You'll find the answer to the antecedent to this topic in &lt;A href="https://communities.sas.com/t5/General-SAS-Programming/How-to-merge-daily-and-quarterly-dataset/m-p/425578#M53058" target="_self"&gt;How to merge daily and quarterly dataset&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jan 2018 15:59:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-fill-the-gap-between-two-observations/m-p/425606#M281171</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-01-07T15:59:16Z</dc:date>
    </item>
  </channel>
</rss>

