<?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: Hold value down to next missing rows in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Hold-value-down-to-next-missing-rows/m-p/501071#M443</link>
    <description>&lt;P&gt;salary is nuemric here&lt;/P&gt;</description>
    <pubDate>Wed, 03 Oct 2018 10:22:41 GMT</pubDate>
    <dc:creator>ashkum</dc:creator>
    <dc:date>2018-10-03T10:22:41Z</dc:date>
    <item>
      <title>Hold value down to next missing rows</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Hold-value-down-to-next-missing-rows/m-p/501062#M441</link>
      <description>&lt;P&gt;id name salary&lt;/P&gt;
&lt;P&gt;1 ash&amp;nbsp; &amp;nbsp;1500&lt;/P&gt;
&lt;P&gt;2 ani&amp;nbsp; &amp;nbsp; &amp;nbsp;*&lt;/P&gt;
&lt;P&gt;3 ayu&amp;nbsp; 2000&lt;/P&gt;
&lt;P&gt;4 shw&amp;nbsp; &amp;nbsp;*&lt;/P&gt;
&lt;P&gt;5 ami&amp;nbsp; 1200&lt;/P&gt;
&lt;P&gt;6 su&amp;nbsp; &amp;nbsp; *&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in the above question I&amp;nbsp; want to replace * with just previous value. what would be the syntax in sas?&lt;/P&gt;
&lt;P&gt;e.g In 2nd observation * is replaced by 1500 and in 4th observation * is replaced by 2000 and so on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 09:58:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Hold-value-down-to-next-missing-rows/m-p/501062#M441</guid>
      <dc:creator>ashkum</dc:creator>
      <dc:date>2018-10-03T09:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hold value down to next missing rows</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Hold-value-down-to-next-missing-rows/m-p/501065#M442</link>
      <description>&lt;P&gt;Something like:&lt;/P&gt;
&lt;PRE&gt;data want (drop=lst);
  set have;
  retain lst $200;
  lst=ifc(salary ne "*",salary,lst);
  salary=ifc(salary="*",lst,salary);
run;&lt;/PRE&gt;
&lt;P&gt;Note not tested, I assume salary is character as * is not numeric, post test data in the form of a datastep in future.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 10:00:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Hold-value-down-to-next-missing-rows/m-p/501065#M442</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-10-03T10:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hold value down to next missing rows</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Hold-value-down-to-next-missing-rows/m-p/501071#M443</link>
      <description>&lt;P&gt;salary is nuemric here&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 10:22:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Hold-value-down-to-next-missing-rows/m-p/501071#M443</guid>
      <dc:creator>ashkum</dc:creator>
      <dc:date>2018-10-03T10:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hold value down to next missing rows</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Hold-value-down-to-next-missing-rows/m-p/501072#M444</link>
      <description>&lt;P&gt;Numeric variables cannot hold the symbol *, therefore either the variable is character or you have changed the missing option.&amp;nbsp; Either way, this is why we always ask for test data in the form of a datastep to avoid these needless backwards and forwards guessing your data.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 10:27:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Hold-value-down-to-next-missing-rows/m-p/501072#M444</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-10-03T10:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Hold value down to next missing rows</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Hold-value-down-to-next-missing-rows/m-p/501107#M446</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/211654"&gt;@ashkum&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;salary is nuemric here&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then just edit RW9's code accordingly: Delete (and forget) &lt;FONT face="courier new,courier" color="#FF0000"&gt;$200&lt;/FONT&gt;, use &lt;FONT face="courier new,courier" color="#008000"&gt;ifn&lt;/FONT&gt; in place of &lt;FONT face="courier new,courier" color="#FF0000"&gt;ifc&lt;/FONT&gt; and replace &lt;FONT face="courier new,courier" color="#FF0000"&gt;"*"&lt;/FONT&gt; by &lt;FONT face="courier new,courier" size="4" color="#008000"&gt;.&lt;/FONT&gt; (the period denotes a numeric missing value) or whatever numeric value was displayed as an asterisk (assuming it was always the same value).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 12:26:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Hold-value-down-to-next-missing-rows/m-p/501107#M446</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-10-03T12:26:52Z</dc:date>
    </item>
  </channel>
</rss>

