<?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: How to compare a date in yymmn6. format to 201809? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-a-date-in-yymmn6-format-to-201809/m-p/895666#M353880</link>
    <description>Perfect - thank you!</description>
    <pubDate>Mon, 25 Sep 2023 14:07:51 GMT</pubDate>
    <dc:creator>RobertWF51</dc:creator>
    <dc:date>2023-09-25T14:07:51Z</dc:date>
    <item>
      <title>How to compare a date in yymmn6. format to 201809?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-a-date-in-yymmn6-format-to-201809/m-p/895664#M353878</link>
      <description>&lt;P&gt;I'm attempting to create a data subset containing records where the yearmth date variable is &amp;lt; 201809.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The yearmth date variable is in&amp;nbsp;yymmn6. format (e.g., "202006").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following code doesn't work - I always forget how to do date comparisons in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data data2;
set data1;
where yearmth &amp;lt; '201908';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 13:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-a-date-in-yymmn6-format-to-201809/m-p/895664#M353878</guid>
      <dc:creator>RobertWF51</dc:creator>
      <dc:date>2023-09-25T13:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a date in yymmn6. format to 201809?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-a-date-in-yymmn6-format-to-201809/m-p/895665#M353879</link>
      <description>&lt;P&gt;If you date variable is in a SAS date format, you could use a SAS date constant notation:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;yearmth &amp;lt; '01Aug2019'd&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Be aware of that you need to specify the specific date.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 14:04:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-a-date-in-yymmn6-format-to-201809/m-p/895665#M353879</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-09-25T14:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare a date in yymmn6. format to 201809?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-compare-a-date-in-yymmn6-format-to-201809/m-p/895666#M353880</link>
      <description>Perfect - thank you!</description>
      <pubDate>Mon, 25 Sep 2023 14:07:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-compare-a-date-in-yymmn6-format-to-201809/m-p/895666#M353880</guid>
      <dc:creator>RobertWF51</dc:creator>
      <dc:date>2023-09-25T14:07:51Z</dc:date>
    </item>
  </channel>
</rss>

