<?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 How to fill out blanc fileds with the last value populated in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-fill-out-blanc-fileds-with-the-last-value-populated/m-p/648790#M194420</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a column named ID filled out like this (with blancs):&lt;/P&gt;&lt;PRE&gt;data have;
input ID $;
infile datalines missover;
datalines;
1       
2      
3


4
5       
 
;&lt;/PRE&gt;&lt;P&gt;I would like to fill out all blancs with the last value populated, so the column I want would look like this:&lt;/P&gt;&lt;PRE&gt;data want;
input ID $;
infile datalines missover;
datalines;
1       
2
3
3
3
4
5
5
; &lt;/PRE&gt;&lt;P&gt;Thank you for your help. Kind regards&lt;/P&gt;</description>
    <pubDate>Tue, 19 May 2020 09:50:25 GMT</pubDate>
    <dc:creator>Aljosa</dc:creator>
    <dc:date>2020-05-19T09:50:25Z</dc:date>
    <item>
      <title>How to fill out blanc fileds with the last value populated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-fill-out-blanc-fileds-with-the-last-value-populated/m-p/648790#M194420</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a column named ID filled out like this (with blancs):&lt;/P&gt;&lt;PRE&gt;data have;
input ID $;
infile datalines missover;
datalines;
1       
2      
3


4
5       
 
;&lt;/PRE&gt;&lt;P&gt;I would like to fill out all blancs with the last value populated, so the column I want would look like this:&lt;/P&gt;&lt;PRE&gt;data want;
input ID $;
infile datalines missover;
datalines;
1       
2
3
3
3
4
5
5
; &lt;/PRE&gt;&lt;P&gt;Thank you for your help. Kind regards&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 09:50:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-fill-out-blanc-fileds-with-the-last-value-populated/m-p/648790#M194420</guid>
      <dc:creator>Aljosa</dc:creator>
      <dc:date>2020-05-19T09:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to fill out blanc fileds with the last value populated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-fill-out-blanc-fileds-with-the-last-value-populated/m-p/648791#M194421</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/296619"&gt;@Aljosa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is one approach to achieve this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
	set have;
	retain _ID;
	if not missing(ID) then _ID = ID;
	drop ID;
	rename _ID = ID;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 09:52:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-fill-out-blanc-fileds-with-the-last-value-populated/m-p/648791#M194421</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-05-19T09:52:56Z</dc:date>
    </item>
  </channel>
</rss>

