<?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: Duration Question in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Duration-Question/m-p/24502#M5540</link>
    <description>You use SAS Extract transform in DI Studio, or potentiality SQL Join if more than one table is involved.&lt;BR /&gt;
&lt;BR /&gt;
If your data is huge, or reside in an external RDBMS, consider to calculate the start and end dates of the BETWEEN interval in a pre-process. Store them as macro variables, for use in the Extract. &lt;BR /&gt;
The use of functions and calculation can prevent SAS from using indexes, or to send the code to the RDBMS for execution.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
    <pubDate>Mon, 24 May 2010 07:32:28 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2010-05-24T07:32:28Z</dc:date>
    <item>
      <title>Duration Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Duration-Question/m-p/24500#M5538</link>
      <description>Hello All,&lt;BR /&gt;
     I am trying to get a report of all the obs for the week ending a week before today. For eg. if today is 5/19/10. I would like to get all the observations for the week of 5/5/10 - 5/12/10. I am running a DI job to do this, but I am not sure on how to specify the date ranges. Can anyone offer any suggestions.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thank You&lt;BR /&gt;
&lt;BR /&gt;
Shri</description>
      <pubDate>Wed, 19 May 2010 11:51:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Duration-Question/m-p/24500#M5538</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-19T11:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Duration Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Duration-Question/m-p/24501#M5539</link>
      <description>Shri,&lt;BR /&gt;
&lt;BR /&gt;
I'm not a DI user.  But the appropriate selection in an IF statement from the data step would look something like&lt;BR /&gt;
&lt;BR /&gt;
IF today()-14 LE obsdate LE today()-7 THEN ...&lt;BR /&gt;
&lt;BR /&gt;
or a SQL WHERE expression of&lt;BR /&gt;
    obsdate BETWEEN today()-14 AND today()-7&lt;BR /&gt;
&lt;BR /&gt;
I suspect that DI would use one of those two approaches.

Message was edited by: Doc@Duke</description>
      <pubDate>Wed, 19 May 2010 13:14:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Duration-Question/m-p/24501#M5539</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2010-05-19T13:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Duration Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Duration-Question/m-p/24502#M5540</link>
      <description>You use SAS Extract transform in DI Studio, or potentiality SQL Join if more than one table is involved.&lt;BR /&gt;
&lt;BR /&gt;
If your data is huge, or reside in an external RDBMS, consider to calculate the start and end dates of the BETWEEN interval in a pre-process. Store them as macro variables, for use in the Extract. &lt;BR /&gt;
The use of functions and calculation can prevent SAS from using indexes, or to send the code to the RDBMS for execution.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Mon, 24 May 2010 07:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Duration-Question/m-p/24502#M5540</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2010-05-24T07:32:28Z</dc:date>
    </item>
  </channel>
</rss>

