<?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: extract quarterly data in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/extract-quarterly-data/m-p/19071#M3693</link>
    <description>allow SAS to derive the start date for "last-quarter"&lt;BR /&gt;
&lt;BR /&gt;
Something like [pre]   %let qtr_start = %sysfunc( intnx( qtr, "&amp;amp;sysdate"d, 0 ), date9 );&lt;BR /&gt;
   ...&lt;BR /&gt;
   where transaction_date GE "&amp;amp;qtr_start"d [/pre]&lt;BR /&gt;
but that depends on using a suitable format for the quarter date.&lt;BR /&gt;
With "implicit-pass-thru" the SAS engine will do any reformatting from DATE9 to the style for your dbms. If you are using 'explicit-pass-thru' you need to prepare the proper format&lt;BR /&gt;
&lt;BR /&gt;
good luck&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
    <pubDate>Tue, 27 May 2008 07:56:12 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-05-27T07:56:12Z</dc:date>
    <item>
      <title>extract quarterly data</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/extract-quarterly-data/m-p/19070#M3692</link>
      <description>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 15:25:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/extract-quarterly-data/m-p/19070#M3692</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-20T15:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: extract quarterly data</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/extract-quarterly-data/m-p/19071#M3693</link>
      <description>allow SAS to derive the start date for "last-quarter"&lt;BR /&gt;
&lt;BR /&gt;
Something like [pre]   %let qtr_start = %sysfunc( intnx( qtr, "&amp;amp;sysdate"d, 0 ), date9 );&lt;BR /&gt;
   ...&lt;BR /&gt;
   where transaction_date GE "&amp;amp;qtr_start"d [/pre]&lt;BR /&gt;
but that depends on using a suitable format for the quarter date.&lt;BR /&gt;
With "implicit-pass-thru" the SAS engine will do any reformatting from DATE9 to the style for your dbms. If you are using 'explicit-pass-thru' you need to prepare the proper format&lt;BR /&gt;
&lt;BR /&gt;
good luck&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
      <pubDate>Tue, 27 May 2008 07:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/extract-quarterly-data/m-p/19071#M3693</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-27T07:56:12Z</dc:date>
    </item>
  </channel>
</rss>

