<?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 retrieve data for the last quarter in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/retrieve-data-for-the-last-quarter/m-p/18878#M939</link>
    <description>I would appreciate if anybody could give me logic to pull data for the last quarter from the database. right now to pull for 1 month I am using&lt;BR /&gt;
sysdate(add_months('mmyyyy'-1) some thing on these lines.</description>
    <pubDate>Tue, 20 May 2008 00:14:52 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-05-20T00:14:52Z</dc:date>
    <item>
      <title>retrieve data for the last quarter</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/retrieve-data-for-the-last-quarter/m-p/18878#M939</link>
      <description>I would appreciate if anybody could give me logic to pull data for the last quarter from the database. right now to pull for 1 month I am using&lt;BR /&gt;
sysdate(add_months('mmyyyy'-1) some thing on these lines.</description>
      <pubDate>Tue, 20 May 2008 00:14:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/retrieve-data-for-the-last-quarter/m-p/18878#M939</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-20T00:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve data for the last quarter</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/retrieve-data-for-the-last-quarter/m-p/18879#M940</link>
      <description>Explore using the SAS function INTNX for this type of date calculation, such as:&lt;BR /&gt;
&lt;BR /&gt;
( INTNX('QTR',TODAY(),-1) LE your_date_var LE INTNX('QTR',TODAY(),-1,'E') )&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 15 Aug 2008 12:46:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/retrieve-data-for-the-last-quarter/m-p/18879#M940</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-08-15T12:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: retrieve data for the last quarter</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/retrieve-data-for-the-last-quarter/m-p/18880#M941</link>
      <description>If you have an index on your date var, be sure to pre calculate and store the result of the INTNX expressions in macro variables, otherwise you won't hit the index when using WHERE.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Linus</description>
      <pubDate>Wed, 20 Aug 2008 12:27:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/retrieve-data-for-the-last-quarter/m-p/18880#M941</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-08-20T12:27:27Z</dc:date>
    </item>
  </channel>
</rss>

