<?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: calculating previous dates in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/calculating-previous-dates/m-p/676407#M23705</link>
    <description>&lt;P&gt;Use a correct date literal:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data flightdelays;
set lib.flightdelays;
where Date &amp;lt; '10JUN2010'd;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You do not need to create a separate dataset, though; WHERE statements (or WHERE= dataset options) can be used in most procedures.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Aug 2020 06:18:26 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-08-13T06:18:26Z</dc:date>
    <item>
      <title>calculating previous dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/calculating-previous-dates/m-p/676395#M23702</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have variable (Date) with dates such as 01MARCH2010 till 12 DEC2011.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i get only variables less than 10JUN2010. iam trying with this code, but it's not executing properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data flightdelays;&lt;BR /&gt;set lib.flightdelays;&lt;BR /&gt;where Date &amp;lt; 10JUN2010;&lt;BR /&gt;run;&lt;BR /&gt;proc print;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 05:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/calculating-previous-dates/m-p/676395#M23702</guid>
      <dc:creator>Raj00007</dc:creator>
      <dc:date>2020-08-13T05:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: calculating previous dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/calculating-previous-dates/m-p/676396#M23703</link>
      <description>&lt;P&gt;T&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data flightdelays;&lt;BR /&gt;set lib.flightdelays;&lt;BR /&gt;if Date &amp;lt; '10JUN2010'n;&lt;BR /&gt;run;&lt;BR /&gt;proc print;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 05:35:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/calculating-previous-dates/m-p/676396#M23703</guid>
      <dc:creator>TarunKumar</dc:creator>
      <dc:date>2020-08-13T05:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: calculating previous dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/calculating-previous-dates/m-p/676404#M23704</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/49775"&gt;@TarunKumar&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;T&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data flightdelays;&lt;BR /&gt;set lib.flightdelays;&lt;BR /&gt;if Date &amp;lt; '10JUN2010'n;&lt;BR /&gt;run;&lt;BR /&gt;proc print;&lt;BR /&gt;run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do you really think &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/97663"&gt;@Raj00007&lt;/a&gt;&amp;nbsp;has a variable named&lt;/P&gt;
&lt;PRE&gt;10JUN2010&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;
&lt;P&gt;The proper character for a date literal is d:&lt;/P&gt;
&lt;PRE&gt;'10JUN2010'd&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Aug 2020 06:14:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/calculating-previous-dates/m-p/676404#M23704</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-08-13T06:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: calculating previous dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/calculating-previous-dates/m-p/676407#M23705</link>
      <description>&lt;P&gt;Use a correct date literal:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data flightdelays;
set lib.flightdelays;
where Date &amp;lt; '10JUN2010'd;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You do not need to create a separate dataset, though; WHERE statements (or WHERE= dataset options) can be used in most procedures.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 06:18:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/calculating-previous-dates/m-p/676407#M23705</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-08-13T06:18:26Z</dc:date>
    </item>
  </channel>
</rss>

