<?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 Filter on date which shows as 'MONYYYY' in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Filter-on-date-which-shows-as-MONYYYY/m-p/596389#M171706</link>
    <description>&lt;P&gt;Hi i was wanting to filter&amp;nbsp; based on 'MONYYYY' date condition in the where step&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know about the default date filter condition 'DDMONYYY'd . But that does not help here .&lt;/P&gt;
&lt;P&gt;any suggestions ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;eg:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'AUG2018'&lt;/P&gt;
&lt;P&gt;'SEP2018'&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2019 23:51:04 GMT</pubDate>
    <dc:creator>dennis_oz</dc:creator>
    <dc:date>2019-10-14T23:51:04Z</dc:date>
    <item>
      <title>Filter on date which shows as 'MONYYYY'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filter-on-date-which-shows-as-MONYYYY/m-p/596389#M171706</link>
      <description>&lt;P&gt;Hi i was wanting to filter&amp;nbsp; based on 'MONYYYY' date condition in the where step&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know about the default date filter condition 'DDMONYYY'd . But that does not help here .&lt;/P&gt;
&lt;P&gt;any suggestions ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;eg:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'AUG2018'&lt;/P&gt;
&lt;P&gt;'SEP2018'&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 23:51:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filter-on-date-which-shows-as-MONYYYY/m-p/596389#M171706</guid>
      <dc:creator>dennis_oz</dc:creator>
      <dc:date>2019-10-14T23:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on date which shows as 'MONYYYY'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filter-on-date-which-shows-as-MONYYYY/m-p/596391#M171707</link>
      <description>&lt;P&gt;How are you trying to filter your data?&lt;/P&gt;
&lt;P&gt;You need to either use the formatted value or change your filter to use a full date.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where '01Jun2019'd &amp;lt;= date_filtered &amp;lt;= '30Jun2019'd;

where vvalue(date_filtered) = '01JUN'; *check case matches here;

where put(date_filtered, monyy5.) = '01JUN';*case must match, text comparison;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19264"&gt;@dennis_oz&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi i was wanting to filter&amp;nbsp; based on 'MONYYYY' date condition in the where step&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know about the default date filter condition 'DDMONYYY'd . But that does not help here .&lt;/P&gt;
&lt;P&gt;any suggestions ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;eg:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'AUG2018'&lt;/P&gt;
&lt;P&gt;'SEP2018'&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 23:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filter-on-date-which-shows-as-MONYYYY/m-p/596391#M171707</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-14T23:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on date which shows as 'MONYYYY'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filter-on-date-which-shows-as-MONYYYY/m-p/596392#M171708</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19264"&gt;@dennis_oz&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi i was wanting to filter&amp;nbsp; based on 'MONYYYY' date condition in the where step&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know about the default date filter condition 'DDMONYYY'd . But that does not help here .&lt;/P&gt;
&lt;P&gt;any suggestions ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;eg:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'AUG2018'&lt;/P&gt;
&lt;P&gt;'SEP2018'&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your use of quotes around the date confuses the matter. SAS does not display the quotes when you look at dates, so why are you showing the quotes to us?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are these numeric variables, formatted to appear as AUG2018? Or are they character strings in a character variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In either case, you can filter using a WHERE clause, but to do this properly we need to know if they are character or numeric variables.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 23:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filter-on-date-which-shows-as-MONYYYY/m-p/596392#M171708</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-14T23:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on date which shows as 'MONYYYY'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filter-on-date-which-shows-as-MONYYYY/m-p/596432#M171722</link>
      <description>&lt;P&gt;Maxim 3: Know Your Data.&lt;/P&gt;
&lt;P&gt;Is the variable in question character or numeric? If it is numeric, it has the monyy7. format assigned and contains a valid SAS date value; you can directly compare it to a date literal.&lt;/P&gt;
&lt;P&gt;If it is character, you need to convert it first.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 05:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filter-on-date-which-shows-as-MONYYYY/m-p/596432#M171722</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-15T05:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on date which shows as 'MONYYYY'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filter-on-date-which-shows-as-MONYYYY/m-p/596483#M171741</link>
      <description>they are numeric variables that habe the format applied to them.&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Oct 2019 11:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filter-on-date-which-shows-as-MONYYYY/m-p/596483#M171741</guid>
      <dc:creator>dennis_oz</dc:creator>
      <dc:date>2019-10-15T11:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on date which shows as 'MONYYYY'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filter-on-date-which-shows-as-MONYYYY/m-p/596488#M171743</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19264"&gt;@dennis_oz&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;they are numeric variables that habe the format applied to them.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first line of code from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;should work. Probably his other lines of code work as well.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 12:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filter-on-date-which-shows-as-MONYYYY/m-p/596488#M171743</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-15T12:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on date which shows as 'MONYYYY'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filter-on-date-which-shows-as-MONYYYY/m-p/596503#M171749</link>
      <description>&lt;P&gt;You can also use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where month(yourdate)&amp;nbsp;=&amp;nbsp;8&amp;nbsp;and&amp;nbsp;year&amp;nbsp;(yourdate)&amp;nbsp;=&amp;nbsp;2018;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Oct 2019 12:45:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filter-on-date-which-shows-as-MONYYYY/m-p/596503#M171749</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-15T12:45:36Z</dc:date>
    </item>
  </channel>
</rss>

