<?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 date comparison in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-date-comparison/m-p/582531#M13857</link>
    <description>&lt;P&gt;Are your SAS dates numeric?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If yes, are they "just" formatted with some date format?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you do a proc contents and check plz and let us know? Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2019 18:36:09 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-08-20T18:36:09Z</dc:date>
    <item>
      <title>SAS date comparison</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-date-comparison/m-p/582530#M13856</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using SAS 9.4&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to compare SAS dates in mmddyy6 format? I have my dates listed as 010119 (mmddyy) format for a specific reason and cannot change them and wanted to know if it is possible to use a where statement in proc freq to keep dates after 010119.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC FREQ DATA = HAVE;&lt;BR /&gt;TABLES LAST_NAME*LAST_CLINIC_FOLLOW_UP;&lt;BR /&gt;WHERE LAST_CLINIC_FOLLOW_UP &amp;gt; 010119;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, upon inspecting the data I have dates that are not after this date. Any help would be great, thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 18:32:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-date-comparison/m-p/582530#M13856</guid>
      <dc:creator>GS2</dc:creator>
      <dc:date>2019-08-20T18:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS date comparison</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-date-comparison/m-p/582531#M13857</link>
      <description>&lt;P&gt;Are your SAS dates numeric?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If yes, are they "just" formatted with some date format?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you do a proc contents and check plz and let us know? Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 18:36:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-date-comparison/m-p/582531#M13857</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-08-20T18:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: SAS date comparison</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-date-comparison/m-p/582536#M13858</link>
      <description>&lt;P&gt;Assuming you have SAS dates, yes you can, but you need to specify dates as a date literal in the date9 format. Or use the MDY function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WHERE LAST_CLINIC_FOLLOW_UP &amp;gt; '01Jan2019'd;

WHERE LAST_CLINIC_FOLLOW_UP &amp;gt; mdy(1, 1, 2019);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/194348"&gt;@GS2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using SAS 9.4&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to compare SAS dates in mmddyy6 format? I have my dates listed as 010119 (mmddyy) format for a specific reason and cannot change them and wanted to know if it is possible to use a where statement in proc freq to keep dates after 010119.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC FREQ DATA = HAVE;&lt;BR /&gt;TABLES LAST_NAME*LAST_CLINIC_FOLLOW_UP;&lt;BR /&gt;WHERE LAST_CLINIC_FOLLOW_UP &amp;gt; 010119;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, upon inspecting the data I have dates that are not after this date. Any help would be great, thank you!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 18:42:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-date-comparison/m-p/582536#M13858</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-20T18:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS date comparison</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-date-comparison/m-p/582537#M13859</link>
      <description>&lt;P&gt;Yes they are numeric variables&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 18:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-date-comparison/m-p/582537#M13859</guid>
      <dc:creator>GS2</dc:creator>
      <dc:date>2019-08-20T18:41:37Z</dc:date>
    </item>
  </channel>
</rss>

