<?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: Proc sql and pulling obs =&amp;lt; the last date of the month in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-sql-and-pulling-obs-lt-the-last-date-of-the-month/m-p/102907#M28809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on the relation between your disposition date and the last date of the month.&lt;/P&gt;&lt;P&gt;You'll need to provide some more information on your criteria and some sample data with expected output is always helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you had a fixed date something like the following would work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc sql;&lt;/P&gt;&lt;P&gt;create table want as&lt;/P&gt;&lt;P&gt;select distinct var1,&amp;nbsp; var2, var3&lt;/P&gt;&lt;P&gt;from have&lt;/P&gt;&lt;P&gt;where datepart(disposition_date) &amp;lt;= '31jul2012'd&lt;/P&gt;&lt;P&gt;; &lt;/P&gt;&lt;P&gt;quit; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jul 2012 19:11:10 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2012-07-09T19:11:10Z</dc:date>
    <item>
      <title>Proc sql and pulling obs =&lt; the last date of the month</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-sql-and-pulling-obs-lt-the-last-date-of-the-month/m-p/102906#M28808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi—&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m trying to pull cases which are =&amp;lt; to the last date of the month based on a certain date variable (DISPOSITION_DATE). The dataset contains data for all 12 months of the year so I’m not sure of to take this into account. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc sql;&lt;/P&gt;&lt;P&gt;create table want as&lt;/P&gt;&lt;P&gt;select distinct&lt;/P&gt;&lt;P&gt;var1, &lt;/P&gt;&lt;P&gt;var2,&lt;/P&gt;&lt;P&gt;var3&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;datepart(DISPOSITION_DATE),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;have; &lt;/P&gt;&lt;P&gt;quit; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 18:28:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-sql-and-pulling-obs-lt-the-last-date-of-the-month/m-p/102906#M28808</guid>
      <dc:creator>Mgarret</dc:creator>
      <dc:date>2012-07-09T18:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql and pulling obs =&lt; the last date of the month</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-sql-and-pulling-obs-lt-the-last-date-of-the-month/m-p/102907#M28809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on the relation between your disposition date and the last date of the month.&lt;/P&gt;&lt;P&gt;You'll need to provide some more information on your criteria and some sample data with expected output is always helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you had a fixed date something like the following would work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc sql;&lt;/P&gt;&lt;P&gt;create table want as&lt;/P&gt;&lt;P&gt;select distinct var1,&amp;nbsp; var2, var3&lt;/P&gt;&lt;P&gt;from have&lt;/P&gt;&lt;P&gt;where datepart(disposition_date) &amp;lt;= '31jul2012'd&lt;/P&gt;&lt;P&gt;; &lt;/P&gt;&lt;P&gt;quit; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 19:11:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-sql-and-pulling-obs-lt-the-last-date-of-the-month/m-p/102907#M28809</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-07-09T19:11:10Z</dc:date>
    </item>
  </channel>
</rss>

