<?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: Fill in values for variable where there are blanks in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Fill-in-values-for-variable-where-there-are-blanks/m-p/376104#M90222</link>
    <description>Thanks</description>
    <pubDate>Fri, 14 Jul 2017 16:53:50 GMT</pubDate>
    <dc:creator>Chinu</dc:creator>
    <dc:date>2017-07-14T16:53:50Z</dc:date>
    <item>
      <title>Fill in values for variable where there are blanks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fill-in-values-for-variable-where-there-are-blanks/m-p/376097#M90219</link>
      <description>&lt;P&gt;Here is some sample data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  infile datalines;
  input ClaimNumber CLIENT $2. ID $2.;
  datalines;
. TX B
1    B
2    B
3    C
. FL C
1    K
2    D
3    B
;;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And this is what I want to end up with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  infile datalines;
  input ClaimNumber CLIENT $2. ID $2.;
  datalines;
. TX B
1 TX B
2 TX B
3 TX C
. FL C
1 FL K
2 FL D
3 FL B
;;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The Client changes each time we hit a "." and the value of Client is there for that first line as you can see in the first sample, I just need to fill in the rest until we reach a new client and so on. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 16:40:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fill-in-values-for-variable-where-there-are-blanks/m-p/376097#M90219</guid>
      <dc:creator>JediApprentice</dc:creator>
      <dc:date>2017-07-14T16:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fill in values for variable where there are blanks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fill-in-values-for-variable-where-there-are-blanks/m-p/376102#M90221</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;

retain newClient;

if not missing(Client) then newClient=Client;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jul 2017 16:47:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fill-in-values-for-variable-where-there-are-blanks/m-p/376102#M90221</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-14T16:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fill in values for variable where there are blanks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fill-in-values-for-variable-where-there-are-blanks/m-p/376104#M90222</link>
      <description>Thanks</description>
      <pubDate>Fri, 14 Jul 2017 16:53:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fill-in-values-for-variable-where-there-are-blanks/m-p/376104#M90222</guid>
      <dc:creator>Chinu</dc:creator>
      <dc:date>2017-07-14T16:53:50Z</dc:date>
    </item>
  </channel>
</rss>

