<?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: Missing values are filled with the next observation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-are-filled-with-the-next-observation/m-p/673053#M202390</link>
    <description>About 117mb&lt;BR /&gt;</description>
    <pubDate>Wed, 29 Jul 2020 08:14:26 GMT</pubDate>
    <dc:creator>HannaZhang</dc:creator>
    <dc:date>2020-07-29T08:14:26Z</dc:date>
    <item>
      <title>Missing values are filled with the next observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-are-filled-with-the-next-observation/m-p/673043#M202384</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;I want to&amp;nbsp;fill Missing values with the next observation or previous&amp;nbsp;observation&amp;nbsp;under certain conditions.&lt;/P&gt;
&lt;P&gt;The conditions as follows&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;missing data at the first half&amp;nbsp; is replaced by the previous adjacent data, and the missing data at the second half is replaced by the next adjacent data. If there is residual data in the middle, the next adjacent data is used instead.&lt;/P&gt;
&lt;P&gt;Thanks a lot.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data have;
 input id var1;
 datalines;
 1 54
 1 60
 1 62
 1 .
 1 .
 1 .
 2 100
 2 100
 3 .
 3 .
 3 .
 3 .
 3 72
 ;
Run;

Data want;
 input id var1;
 datalines;
 1 54
 1 60
 1 62
 1 62
 1 100
 1 100
 2 100
 2 100
 3 100
 3 100
 3 72
 3 72
 3 72

 ;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jul 2020 05:49:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-are-filled-with-the-next-observation/m-p/673043#M202384</guid>
      <dc:creator>HannaZhang</dc:creator>
      <dc:date>2020-07-29T05:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values are filled with the next observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-are-filled-with-the-next-observation/m-p/673050#M202387</link>
      <description>&lt;P&gt;How bog is your data set?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 07:31:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-are-filled-with-the-next-observation/m-p/673050#M202387</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-07-29T07:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Missing values are filled with the next observation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Missing-values-are-filled-with-the-next-observation/m-p/673053#M202390</link>
      <description>About 117mb&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Jul 2020 08:14:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Missing-values-are-filled-with-the-next-observation/m-p/673053#M202390</guid>
      <dc:creator>HannaZhang</dc:creator>
      <dc:date>2020-07-29T08:14:26Z</dc:date>
    </item>
  </channel>
</rss>

