<?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 Filling in values in a data set in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Filling-in-values-in-a-data-set/m-p/833018#M329299</link>
    <description>&lt;P&gt;I have three tables, a Master calendar table, Accrued points table, and Redeemed Points table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Users can redeem points and not accrue and vice versa.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create records to fill in a data set for months where no points accrued.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;Month&amp;nbsp; &amp;nbsp; &amp;nbsp; ID&lt;/P&gt;&lt;P&gt;SEP&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&lt;/P&gt;&lt;P&gt;OCT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&lt;/P&gt;&lt;P&gt;NOV&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desired OutCome&lt;/P&gt;&lt;P&gt;Month&amp;nbsp; &amp;nbsp; &amp;nbsp; ID&lt;/P&gt;&lt;P&gt;SEP&amp;nbsp; &amp;nbsp; &amp;nbsp; A&lt;/P&gt;&lt;P&gt;OCT&amp;nbsp; &amp;nbsp; &amp;nbsp; A&lt;/P&gt;&lt;P&gt;NOV&amp;nbsp; &amp;nbsp; &amp;nbsp;A&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2022 23:16:27 GMT</pubDate>
    <dc:creator>nickcampanale</dc:creator>
    <dc:date>2022-09-12T23:16:27Z</dc:date>
    <item>
      <title>Filling in values in a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filling-in-values-in-a-data-set/m-p/833018#M329299</link>
      <description>&lt;P&gt;I have three tables, a Master calendar table, Accrued points table, and Redeemed Points table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Users can redeem points and not accrue and vice versa.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create records to fill in a data set for months where no points accrued.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;Month&amp;nbsp; &amp;nbsp; &amp;nbsp; ID&lt;/P&gt;&lt;P&gt;SEP&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&lt;/P&gt;&lt;P&gt;OCT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&lt;/P&gt;&lt;P&gt;NOV&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desired OutCome&lt;/P&gt;&lt;P&gt;Month&amp;nbsp; &amp;nbsp; &amp;nbsp; ID&lt;/P&gt;&lt;P&gt;SEP&amp;nbsp; &amp;nbsp; &amp;nbsp; A&lt;/P&gt;&lt;P&gt;OCT&amp;nbsp; &amp;nbsp; &amp;nbsp; A&lt;/P&gt;&lt;P&gt;NOV&amp;nbsp; &amp;nbsp; &amp;nbsp;A&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 23:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filling-in-values-in-a-data-set/m-p/833018#M329299</guid>
      <dc:creator>nickcampanale</dc:creator>
      <dc:date>2022-09-12T23:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Filling in values in a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filling-in-values-in-a-data-set/m-p/833019#M329300</link>
      <description>&lt;P&gt;You mention three input tables and show one, and don't even provide a data set name to boot.&lt;/P&gt;
&lt;P&gt;Probably should show examples of all three.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You imply that what ever that ID might be that it could have values before a user is actually active. Is that in fact what you want?&lt;/P&gt;
&lt;P&gt;What determines the actual value to "fill in"? Closest other value? Before? After?&lt;/P&gt;
&lt;P&gt;I suspect you are leaving out details that are obvious to you but not mentioned while we can only use what you show us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A trivial and almost certainly incorrect approach would be like this:&lt;/P&gt;
&lt;PRE&gt;data want;
   set datawithmissing;
   id = 'A';
run;&lt;/PRE&gt;
&lt;P&gt;Probably incorrect because it sets everything to 'A'. But you haven't provided any example why a value other than 'A' would appear.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 23:24:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filling-in-values-in-a-data-set/m-p/833019#M329300</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-09-12T23:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filling in values in a data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filling-in-values-in-a-data-set/m-p/833048#M329306</link>
      <description>&lt;P&gt;Is there always only obs without missing ID? If not: please describe the rule to choose the right value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 05:57:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filling-in-values-in-a-data-set/m-p/833048#M329306</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-09-13T05:57:36Z</dc:date>
    </item>
  </channel>
</rss>

