<?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: last_day (ADD_MONTHS(sysdate, -1))    in proc sql? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/last-day-ADD-MONTHS-sysdate-1-in-proc-sql/m-p/261494#M269118</link>
    <description>&lt;P&gt;I am trying to filter data between a static date (may be 01/012014) and previous month of when we are running the report (if i am running the report today, i want it to be last day of last month ). &amp;nbsp;The code ran in oracle. I was trying to see if i can just use a pass through query and import to sas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Apr 2016 18:55:40 GMT</pubDate>
    <dc:creator>ashwini2</dc:creator>
    <dc:date>2016-04-05T18:55:40Z</dc:date>
    <item>
      <title>last_day (ADD_MONTHS(sysdate, -1))    in proc sql?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/last-day-ADD-MONTHS-sysdate-1-in-proc-sql/m-p/261490#M269116</link>
      <description>&lt;P&gt;used "last_day (ADD_MONTHS(sysdate, -1))" in sql developer and it worked.&lt;/P&gt;&lt;P&gt;What do i use in SAS for the same?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 18:28:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/last-day-ADD-MONTHS-sysdate-1-in-proc-sql/m-p/261490#M269116</guid>
      <dc:creator>ashwini2</dc:creator>
      <dc:date>2016-04-05T18:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: last_day (ADD_MONTHS(sysdate, -1))    in proc sql?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/last-day-ADD-MONTHS-sysdate-1-in-proc-sql/m-p/261493#M269117</link>
      <description>&lt;P&gt;A description of what ADD-MONTHS() does in whatever environment your code comes from would be useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to get the last day of last month, use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;INTNX("MONTH", today(), -1, "END")&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 18:47:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/last-day-ADD-MONTHS-sysdate-1-in-proc-sql/m-p/261493#M269117</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-04-05T18:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: last_day (ADD_MONTHS(sysdate, -1))    in proc sql?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/last-day-ADD-MONTHS-sysdate-1-in-proc-sql/m-p/261494#M269118</link>
      <description>&lt;P&gt;I am trying to filter data between a static date (may be 01/012014) and previous month of when we are running the report (if i am running the report today, i want it to be last day of last month ). &amp;nbsp;The code ran in oracle. I was trying to see if i can just use a pass through query and import to sas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 18:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/last-day-ADD-MONTHS-sysdate-1-in-proc-sql/m-p/261494#M269118</guid>
      <dc:creator>ashwini2</dc:creator>
      <dc:date>2016-04-05T18:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: last_day (ADD_MONTHS(sysdate, -1))    in proc sql?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/last-day-ADD-MONTHS-sysdate-1-in-proc-sql/m-p/261602#M269119</link>
      <description>Try the code &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt; provided but first with an implicit pass thru (libname access).&lt;BR /&gt;Options sastrace =',,,d' SASTRACELOC =saslog nostsuffix msglevel =i;&lt;BR /&gt;will let you whether the functions are passed to Oracle or not.</description>
      <pubDate>Wed, 06 Apr 2016 06:19:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/last-day-ADD-MONTHS-sysdate-1-in-proc-sql/m-p/261602#M269119</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-04-06T06:19:54Z</dc:date>
    </item>
  </channel>
</rss>

