<?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 Help with filling in with missing data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-with-filling-in-with-missing-data/m-p/232794#M42440</link>
    <description>&lt;P&gt;I have the following data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;/P&gt;
&lt;P&gt;input id $2. call_dt mmddyy10. hr $6.;&lt;/P&gt;
&lt;P&gt;cards;&lt;/P&gt;
&lt;P&gt;12 10/06/2015 10 am&lt;/P&gt;
&lt;P&gt;12 10/06/2015 12 pm&lt;/P&gt;
&lt;P&gt;12 10/06/2015 2 pm&lt;/P&gt;
&lt;P&gt;12 10/06/2015 5 pm&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want the following output with missing hours added to the final output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;id &amp;nbsp; &amp;nbsp; &amp;nbsp; call_dt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hr&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;12 10/06/2015 &amp;nbsp; 10 am&lt;/P&gt;
&lt;P&gt;12 10/06/2015 &amp;nbsp; 11 am&lt;/P&gt;
&lt;P&gt;12 10/06/2015 &amp;nbsp; 12 pm&lt;/P&gt;
&lt;P&gt;12 10/06/2015 &amp;nbsp; &amp;nbsp; 1 pm&lt;/P&gt;
&lt;P&gt;12 10/06/2015 &amp;nbsp; &amp;nbsp; 2 pm&lt;/P&gt;
&lt;P&gt;12 10/06/2015 &amp;nbsp; &amp;nbsp; 3 pm&lt;/P&gt;
&lt;P&gt;12 10/06/2015 &amp;nbsp; &amp;nbsp; 4 pm&lt;/P&gt;
&lt;P&gt;12 10/06/2015 &amp;nbsp; &amp;nbsp; 5 pm&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help will be greatly appreciated...&lt;/P&gt;</description>
    <pubDate>Mon, 02 Nov 2015 20:04:52 GMT</pubDate>
    <dc:creator>pp2014</dc:creator>
    <dc:date>2015-11-02T20:04:52Z</dc:date>
    <item>
      <title>Help with filling in with missing data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-filling-in-with-missing-data/m-p/232794#M42440</link>
      <description>&lt;P&gt;I have the following data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;/P&gt;
&lt;P&gt;input id $2. call_dt mmddyy10. hr $6.;&lt;/P&gt;
&lt;P&gt;cards;&lt;/P&gt;
&lt;P&gt;12 10/06/2015 10 am&lt;/P&gt;
&lt;P&gt;12 10/06/2015 12 pm&lt;/P&gt;
&lt;P&gt;12 10/06/2015 2 pm&lt;/P&gt;
&lt;P&gt;12 10/06/2015 5 pm&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want the following output with missing hours added to the final output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;id &amp;nbsp; &amp;nbsp; &amp;nbsp; call_dt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hr&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;12 10/06/2015 &amp;nbsp; 10 am&lt;/P&gt;
&lt;P&gt;12 10/06/2015 &amp;nbsp; 11 am&lt;/P&gt;
&lt;P&gt;12 10/06/2015 &amp;nbsp; 12 pm&lt;/P&gt;
&lt;P&gt;12 10/06/2015 &amp;nbsp; &amp;nbsp; 1 pm&lt;/P&gt;
&lt;P&gt;12 10/06/2015 &amp;nbsp; &amp;nbsp; 2 pm&lt;/P&gt;
&lt;P&gt;12 10/06/2015 &amp;nbsp; &amp;nbsp; 3 pm&lt;/P&gt;
&lt;P&gt;12 10/06/2015 &amp;nbsp; &amp;nbsp; 4 pm&lt;/P&gt;
&lt;P&gt;12 10/06/2015 &amp;nbsp; &amp;nbsp; 5 pm&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help will be greatly appreciated...&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 20:04:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-filling-in-with-missing-data/m-p/232794#M42440</guid>
      <dc:creator>pp2014</dc:creator>
      <dc:date>2015-11-02T20:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help with filling in with missing data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-filling-in-with-missing-data/m-p/232818#M42451</link>
      <description>&lt;P&gt;Assuming nothing is being left to the imagination (such as the presence of additional variables), the easiest way might be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=have (keep=id call_dt) nodupkey;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; by id call_dt;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;do hr = '10 am', '11 am', '12 pm', ' 1 pm', ' 2 pm', ' 3 pm', ' 4 pm', ' 5 pm';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2015 21:40:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-filling-in-with-missing-data/m-p/232818#M42451</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-11-02T21:40:25Z</dc:date>
    </item>
  </channel>
</rss>

