<?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 Print Missing Date (From the Last x Number of Days) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Print-Missing-Date-From-the-Last-x-Number-of-Days/m-p/622017#M182928</link>
    <description>&lt;P&gt;Hi &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;What is the best way to print a date that holds no data in a large dataset for a specific date range? For example, I halve multiple records in one dataset for the last 7 days. In the dataset one of the dates in the last 7 days contains no data. How would I write code for SAS to highlight which date holds no data?&lt;/P&gt;&lt;P&gt;In the below, I would want SAS to highlight 01/31/2020 as this is the date that is missing from the last 7 days.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;

     input date:mmddyy10.  car_key;

     format date mmddyy10.;

     cards;

01/28/20 20071031
01/29/20 20070930
01/30/20 20070831
02/01/20 20070831
02/02/20 20070630
02/03/20 20070531

;RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2020 19:23:13 GMT</pubDate>
    <dc:creator>JackoNewbie</dc:creator>
    <dc:date>2020-02-03T19:23:13Z</dc:date>
    <item>
      <title>Print Missing Date (From the Last x Number of Days)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-Missing-Date-From-the-Last-x-Number-of-Days/m-p/622017#M182928</link>
      <description>&lt;P&gt;Hi &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;What is the best way to print a date that holds no data in a large dataset for a specific date range? For example, I halve multiple records in one dataset for the last 7 days. In the dataset one of the dates in the last 7 days contains no data. How would I write code for SAS to highlight which date holds no data?&lt;/P&gt;&lt;P&gt;In the below, I would want SAS to highlight 01/31/2020 as this is the date that is missing from the last 7 days.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;

     input date:mmddyy10.  car_key;

     format date mmddyy10.;

     cards;

01/28/20 20071031
01/29/20 20070930
01/30/20 20070831
02/01/20 20070831
02/02/20 20070630
02/03/20 20070531

;RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 19:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-Missing-Date-From-the-Last-x-Number-of-Days/m-p/622017#M182928</guid>
      <dc:creator>JackoNewbie</dc:creator>
      <dc:date>2020-02-03T19:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Print Missing Date (From the Last x Number of Days)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-Missing-Date-From-the-Last-x-Number-of-Days/m-p/622023#M182929</link>
      <description>I created a hundred-year calendar dataset which I can then right-join to a dataset like your 'have' to easily select missing dates.</description>
      <pubDate>Mon, 03 Feb 2020 19:35:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-Missing-Date-From-the-Last-x-Number-of-Days/m-p/622023#M182929</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2020-02-03T19:35:51Z</dc:date>
    </item>
  </channel>
</rss>

