<?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 How to create dummy data using SQL when the counts are missing for certain days in a weekly report? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-dummy-data-using-SQL-when-the-counts-are-missing/m-p/719375#M222743</link>
    <description>&lt;P&gt;I need to create a table with overall counts, last weeks counts as well as daily counts( Sunday to Saturday).&lt;/P&gt;
&lt;P&gt;Some time my daily counts table is failing because there is no data for Sunday? How can I handle this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;input product description $ total last_week day :date9. amount_received;&lt;BR /&gt;cards;&lt;BR /&gt;1235 Item1 3173 1070 07FEB2021 73&lt;BR /&gt;1235 Item1 3173 1070 08FEB2021 34&lt;BR /&gt;5432 Item4 340 96 07FEB2021 19&lt;BR /&gt;5432 Item4 340 96 08FEB2021 2&lt;BR /&gt;6574 Item5 5 2 08FEB2021 3&lt;BR /&gt;;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table track_daily as&lt;BR /&gt;select product, description, Day format=date9., sum(amount_received) as Received&lt;BR /&gt;from have&lt;BR /&gt;group by product, description, Day;&lt;BR /&gt;quit;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Feb 2021 16:37:05 GMT</pubDate>
    <dc:creator>Stalk</dc:creator>
    <dc:date>2021-02-15T16:37:05Z</dc:date>
    <item>
      <title>How to create dummy data using SQL when the counts are missing for certain days in a weekly report?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-dummy-data-using-SQL-when-the-counts-are-missing/m-p/719375#M222743</link>
      <description>&lt;P&gt;I need to create a table with overall counts, last weeks counts as well as daily counts( Sunday to Saturday).&lt;/P&gt;
&lt;P&gt;Some time my daily counts table is failing because there is no data for Sunday? How can I handle this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;input product description $ total last_week day :date9. amount_received;&lt;BR /&gt;cards;&lt;BR /&gt;1235 Item1 3173 1070 07FEB2021 73&lt;BR /&gt;1235 Item1 3173 1070 08FEB2021 34&lt;BR /&gt;5432 Item4 340 96 07FEB2021 19&lt;BR /&gt;5432 Item4 340 96 08FEB2021 2&lt;BR /&gt;6574 Item5 5 2 08FEB2021 3&lt;BR /&gt;;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table track_daily as&lt;BR /&gt;select product, description, Day format=date9., sum(amount_received) as Received&lt;BR /&gt;from have&lt;BR /&gt;group by product, description, Day;&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 16:37:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-dummy-data-using-SQL-when-the-counts-are-missing/m-p/719375#M222743</guid>
      <dc:creator>Stalk</dc:creator>
      <dc:date>2021-02-15T16:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dummy data using SQL when the counts are missing for certain days in a weekly repo</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-dummy-data-using-SQL-when-the-counts-are-missing/m-p/719463#M222759</link>
      <description>&lt;P&gt;Wouldn't it be better to change your processing to handle missing days rather than insert dummy data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post the SAS log of the code that is failing.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 19:44:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-dummy-data-using-SQL-when-the-counts-are-missing/m-p/719463#M222759</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-02-15T19:44:31Z</dc:date>
    </item>
  </channel>
</rss>

