<?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 need your help in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/need-your-help/m-p/23080#M5073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a couple of reasons why you would be getting errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, is date a datetime variable?&amp;nbsp; If it is just a date variable, then you wouldn't need the datepart function.&lt;/P&gt;&lt;P&gt;Second, you are missing one character from the date and you have some superfluous characters. It should read:&lt;/P&gt;&lt;P&gt; '23DEC2011'd&lt;/P&gt;&lt;P&gt;Third you specify a non-existent variable, namely "date of loan".&amp;nbsp; Wasn't it just "date"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for building a macro, if you are going to run it every day, why not just specify the date in the where statement relative to the current date.&amp;nbsp; e.g., use the today() function or, if you want it to be x number of days from the current date,&lt;/P&gt;&lt;P&gt;where date=today()-8 (or whatever x is).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jan 2012 17:15:04 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-01-03T17:15:04Z</dc:date>
    <item>
      <title>need your help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/need-your-help/m-p/23079#M5072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one table employee which contain name, loan, amount, date of loan(mm/dd/yyyy) variables.&lt;/P&gt;&lt;P&gt;I want to check the persons who had taken loan on some date(like 23-dec-2011). Aslo how to write macro if i run the program daily&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select name, loan, date from employee&lt;/P&gt;&lt;P&gt;where datepart(date of loan) as loan= '23-dec-2011'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format=date9. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting error&lt;/P&gt;&lt;P&gt;Advance thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 16:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/need-your-help/m-p/23079#M5072</guid>
      <dc:creator>dash</dc:creator>
      <dc:date>2012-01-03T16:39:28Z</dc:date>
    </item>
    <item>
      <title>need your help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/need-your-help/m-p/23080#M5073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a couple of reasons why you would be getting errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, is date a datetime variable?&amp;nbsp; If it is just a date variable, then you wouldn't need the datepart function.&lt;/P&gt;&lt;P&gt;Second, you are missing one character from the date and you have some superfluous characters. It should read:&lt;/P&gt;&lt;P&gt; '23DEC2011'd&lt;/P&gt;&lt;P&gt;Third you specify a non-existent variable, namely "date of loan".&amp;nbsp; Wasn't it just "date"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for building a macro, if you are going to run it every day, why not just specify the date in the where statement relative to the current date.&amp;nbsp; e.g., use the today() function or, if you want it to be x number of days from the current date,&lt;/P&gt;&lt;P&gt;where date=today()-8 (or whatever x is).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 17:15:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/need-your-help/m-p/23080#M5073</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-01-03T17:15:04Z</dc:date>
    </item>
  </channel>
</rss>

