<?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: sas function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sas-function/m-p/37911#M7576</link>
    <description>Thanks Oliver, you have been great help.</description>
    <pubDate>Thu, 24 Mar 2011 14:52:15 GMT</pubDate>
    <dc:creator>jdk123</dc:creator>
    <dc:date>2011-03-24T14:52:15Z</dc:date>
    <item>
      <title>sas function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-function/m-p/37908#M7573</link>
      <description>the current_date='01feb2011'd;&lt;BR /&gt;
&lt;BR /&gt;
how to identify the last month of the last quarter of the current data '01feb2011'd?&lt;BR /&gt;
&lt;BR /&gt;
thanks,</description>
      <pubDate>Thu, 24 Mar 2011 14:34:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-function/m-p/37908#M7573</guid>
      <dc:creator>jdk123</dc:creator>
      <dc:date>2011-03-24T14:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: sas function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-function/m-p/37909#M7574</link>
      <description>Hello Jdk123,&lt;BR /&gt;
&lt;BR /&gt;
month=MONTH(current_date);&lt;BR /&gt;
qtr=INT(month/4)+1;&lt;BR /&gt;
&lt;BR /&gt;
Is this what are you looking for?&lt;BR /&gt;
&lt;BR /&gt;
Sincerely,&lt;BR /&gt;
SPR</description>
      <pubDate>Thu, 24 Mar 2011 14:45:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-function/m-p/37909#M7574</guid>
      <dc:creator>SPR</dc:creator>
      <dc:date>2011-03-24T14:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: sas function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-function/m-p/37910#M7575</link>
      <description>Hi.&lt;BR /&gt;
If I do understand your need, you have to try the INTNX function (to shift 1 quarter back in the past) with the optional "END" fourth argument to move to the end of the period, that is the last day of the preceding quarter.&lt;BR /&gt;
[pre]last_quarter_month = INTNX("QUARTER", current_date, -1, "END") ;[/pre]&lt;BR /&gt;
This gives 31dec2010 for CURRENT_DATE to 01feb2011. If you only want the month, include the whole INTNX function into a MONTH function ; that will produce 12 as a result.&lt;BR /&gt;
Hope it helps.&lt;BR /&gt;
Olivier</description>
      <pubDate>Thu, 24 Mar 2011 14:47:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-function/m-p/37910#M7575</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2011-03-24T14:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: sas function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-function/m-p/37911#M7576</link>
      <description>Thanks Oliver, you have been great help.</description>
      <pubDate>Thu, 24 Mar 2011 14:52:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-function/m-p/37911#M7576</guid>
      <dc:creator>jdk123</dc:creator>
      <dc:date>2011-03-24T14:52:15Z</dc:date>
    </item>
  </channel>
</rss>

