<?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: SAS EG - Completing missing values by previous value in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Completing-missing-values-by-previous-value/m-p/244388#M17403</link>
    <description>&lt;P&gt;And, as further advice: if you want to continue working with SAS, basic skills in data step and procedure coding are indispensable. Probably the best starting point is here:&lt;/P&gt;
&lt;P&gt;&lt;A title="SAS(R) 9.4 Language Reference: Concepts" href="http://support.sas.com/documentation/cdl/en/lrcon/68089/HTML/default/viewer.htm#titlepage.htm" target="_blank"&gt;SAS(R) 9.4 Language Reference: Concepts&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2016 09:57:56 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-01-19T09:57:56Z</dc:date>
    <item>
      <title>SAS EG - Completing missing values by previous value</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Completing-missing-values-by-previous-value/m-p/244053#M17391</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to fill in the missing values with the previous value, using SAS EG &lt;EM&gt;without editing the code manually&lt;/EM&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a b&lt;/P&gt;&lt;P&gt;1 8&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&lt;/P&gt;&lt;P&gt;4 10&lt;/P&gt;&lt;P&gt;5 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;should be&lt;/P&gt;&lt;P&gt;a b&lt;/P&gt;&lt;P&gt;1 8&lt;/P&gt;&lt;P&gt;2 &lt;STRONG&gt;8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3 &lt;STRONG&gt;8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;4 10&lt;/P&gt;&lt;P&gt;5 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2016 10:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Completing-missing-values-by-previous-value/m-p/244053#M17391</guid>
      <dc:creator>Mto</dc:creator>
      <dc:date>2016-01-17T10:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG - Completing missing values by previous value</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Completing-missing-values-by-previous-value/m-p/244067#M17393</link>
      <description>&lt;P&gt;Not easily...the fastest way is to write a data step.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2016 17:58:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Completing-missing-values-by-previous-value/m-p/244067#M17393</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-17T17:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG - Completing missing values by previous value</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Completing-missing-values-by-previous-value/m-p/244167#M17394</link>
      <description>&lt;P&gt;This is beyond the scope of the wizards in EG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
retain oldb;
if b = . then b = oldb;
oldb = b;
drop oldb;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(asssuming that b is a numeric variable)&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 07:39:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Completing-missing-values-by-previous-value/m-p/244167#M17394</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-01-18T07:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG - Completing missing values by previous value</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Completing-missing-values-by-previous-value/m-p/244377#M17400</link>
      <description>&lt;P&gt;Thank you Kurt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(As a 'noob') where can I insert this code?&lt;/P&gt;&lt;P&gt;And what if 'b' is not a numeric value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Maarten&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 09:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Completing-missing-values-by-previous-value/m-p/244377#M17400</guid>
      <dc:creator>Mto</dc:creator>
      <dc:date>2016-01-19T09:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG - Completing missing values by previous value</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Completing-missing-values-by-previous-value/m-p/244386#M17402</link>
      <description>&lt;P&gt;The missing value for a string is the empty string, most often represented as '' or "" (single or double quotes with nothing or just blanks in between).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code transforms the existing data set "have" into the new dataset "want", which is the typical generic nomenklatura for datasets in examples here.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 09:46:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Completing-missing-values-by-previous-value/m-p/244386#M17402</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-01-19T09:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG - Completing missing values by previous value</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Completing-missing-values-by-previous-value/m-p/244388#M17403</link>
      <description>&lt;P&gt;And, as further advice: if you want to continue working with SAS, basic skills in data step and procedure coding are indispensable. Probably the best starting point is here:&lt;/P&gt;
&lt;P&gt;&lt;A title="SAS(R) 9.4 Language Reference: Concepts" href="http://support.sas.com/documentation/cdl/en/lrcon/68089/HTML/default/viewer.htm#titlepage.htm" target="_blank"&gt;SAS(R) 9.4 Language Reference: Concepts&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 09:57:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Completing-missing-values-by-previous-value/m-p/244388#M17403</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-01-19T09:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG - Completing missing values by previous value</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Completing-missing-values-by-previous-value/m-p/244390#M17404</link>
      <description>&lt;P&gt;Thank you very much, Kurt!&lt;/P&gt;&lt;P&gt;I will definitely follow your advice to learn more about data step and procedure coding &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For now, can you help with the question where I should add the 'data-want'&amp;nbsp;code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 10:02:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Completing-missing-values-by-previous-value/m-p/244390#M17404</guid>
      <dc:creator>Mto</dc:creator>
      <dc:date>2016-01-19T10:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG - Completing missing values by previous value</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Completing-missing-values-by-previous-value/m-p/244396#M17405</link>
      <description>&lt;P&gt;As far as I can infer from the postings up to now, you somehow get a SAS dataset with missng values, which you want to have corrected.&lt;/P&gt;
&lt;P&gt;Let's assume this dataset is found in your SAS environment as XXXX.YYYY (XXXX being a library, and YYYY being the dataset name).&lt;/P&gt;
&lt;P&gt;You need to find the spot in your existing code (nothing in SAS is done without SAS code), and then you can add my code snippet. If you replace "have" and "want" with XXXX.YYYY, you get a step that rewrites the dataset "in place" with the corrected values.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2016 11:01:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Completing-missing-values-by-previous-value/m-p/244396#M17405</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-01-19T11:01:16Z</dc:date>
    </item>
  </channel>
</rss>

