<?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: subsetting in a where clause with a date format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/subsetting-in-a-where-clause-with-a-date-format/m-p/463855#M118229</link>
    <description>&lt;P&gt;Can you explain why we cannot use MONYY5. informat?&lt;/P&gt;&lt;P&gt;Eg: where ( date = "JAN95"MONYY5.)&lt;/P&gt;&lt;P&gt;I am not able to understand&amp;nbsp;why we cannot write this&lt;/P&gt;</description>
    <pubDate>Mon, 21 May 2018 19:09:05 GMT</pubDate>
    <dc:creator>riyaaora275</dc:creator>
    <dc:date>2018-05-21T19:09:05Z</dc:date>
    <item>
      <title>subsetting in a where clause with a date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/subsetting-in-a-where-clause-with-a-date-format/m-p/278647#M56068</link>
      <description>&lt;P&gt;I'm using a date format:&amp;nbsp; &lt;STRONG&gt;FORMAT DATE MONYY5.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the data appears correctly in the dataset, but whenever I try to subset on that date, I receive an error:&lt;/P&gt;&lt;P&gt;36&amp;nbsp;&amp;nbsp; PROC SGPLOT DATA = TOT_CLABSI&amp;nbsp; (WHERE=(DATE &amp;lt; "APR16"d ));&lt;BR /&gt;ERROR: Invalid date/time/datetime constant "APR16"d.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me figure out what I'm doing wrong1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 12:21:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/subsetting-in-a-where-clause-with-a-date-format/m-p/278647#M56068</guid>
      <dc:creator>tmtemples</dc:creator>
      <dc:date>2016-06-20T12:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: subsetting in a where clause with a date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/subsetting-in-a-where-clause-with-a-date-format/m-p/278648#M56069</link>
      <description>&lt;P&gt;A SAS date constant must always include days, months and years.&lt;/P&gt;
&lt;P&gt;Therefore you need to enter it as '01apr2016'd in this case.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 12:23:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/subsetting-in-a-where-clause-with-a-date-format/m-p/278648#M56069</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-06-20T12:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: subsetting in a where clause with a date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/subsetting-in-a-where-clause-with-a-date-format/m-p/278649#M56070</link>
      <description>&lt;P&gt;PS no matter how it is formatted, a SAS date is always a number, counting days from January 1st, 1960.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 12:24:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/subsetting-in-a-where-clause-with-a-date-format/m-p/278649#M56070</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-06-20T12:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: subsetting in a where clause with a date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/subsetting-in-a-where-clause-with-a-date-format/m-p/278650#M56071</link>
      <description>Thank you! I though I needed to use the same format!</description>
      <pubDate>Mon, 20 Jun 2016 12:28:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/subsetting-in-a-where-clause-with-a-date-format/m-p/278650#M56071</guid>
      <dc:creator>tmtemples</dc:creator>
      <dc:date>2016-06-20T12:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: subsetting in a where clause with a date format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/subsetting-in-a-where-clause-with-a-date-format/m-p/463855#M118229</link>
      <description>&lt;P&gt;Can you explain why we cannot use MONYY5. informat?&lt;/P&gt;&lt;P&gt;Eg: where ( date = "JAN95"MONYY5.)&lt;/P&gt;&lt;P&gt;I am not able to understand&amp;nbsp;why we cannot write this&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 19:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/subsetting-in-a-where-clause-with-a-date-format/m-p/463855#M118229</guid>
      <dc:creator>riyaaora275</dc:creator>
      <dc:date>2018-05-21T19:09:05Z</dc:date>
    </item>
  </channel>
</rss>

