<?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: checking dates in sql in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/checking-dates-in-sql/m-p/53537#M14795</link>
    <description>proc sql;&lt;BR /&gt;
select *from dataset name&lt;BR /&gt;
	where date ge '01012009'd ;&lt;BR /&gt;
  quit;</description>
    <pubDate>Mon, 08 Feb 2010 03:52:08 GMT</pubDate>
    <dc:creator>venkatesh</dc:creator>
    <dc:date>2010-02-08T03:52:08Z</dc:date>
    <item>
      <title>checking dates in sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/checking-dates-in-sql/m-p/53535#M14793</link>
      <description>I have a date variable where dates are stored as mmddyyyy format,&lt;BR /&gt;
how do i check the date variable using sql where condition?&lt;BR /&gt;
Suppose i want to select all records whre date is greater than 01012009&lt;BR /&gt;
what will be sql for this.</description>
      <pubDate>Fri, 05 Feb 2010 20:59:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/checking-dates-in-sql/m-p/53535#M14793</guid>
      <dc:creator>ren2010</dc:creator>
      <dc:date>2010-02-05T20:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: checking dates in sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/checking-dates-in-sql/m-p/53536#M14794</link>
      <description>Suggest you search the forum archives - a popular post/topic/question.  Also, how about the SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website with a suitable search there as well?&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 05 Feb 2010 21:33:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/checking-dates-in-sql/m-p/53536#M14794</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-02-05T21:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: checking dates in sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/checking-dates-in-sql/m-p/53537#M14795</link>
      <description>proc sql;&lt;BR /&gt;
select *from dataset name&lt;BR /&gt;
	where date ge '01012009'd ;&lt;BR /&gt;
  quit;</description>
      <pubDate>Mon, 08 Feb 2010 03:52:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/checking-dates-in-sql/m-p/53537#M14795</guid>
      <dc:creator>venkatesh</dc:creator>
      <dc:date>2010-02-08T03:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: checking dates in sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/checking-dates-in-sql/m-p/53538#M14796</link>
      <description>Hi:&lt;BR /&gt;
  Please refer to the documentation on using constants in expressions:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000780334.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000780334.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
  Particularly, the use of date constants requires that the date constant be expressed in the form: ddMMMyy or ddMMMyyyy, as shown below:&lt;BR /&gt;
[pre]&lt;B&gt;&lt;BR /&gt;
Use the following patterns to create date and time constants:&lt;BR /&gt;
&lt;BR /&gt;
date='1jan2006'd; &lt;BR /&gt;
&lt;BR /&gt;
date='01jan04'd; &lt;BR /&gt;
&lt;/B&gt;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 08 Feb 2010 04:22:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/checking-dates-in-sql/m-p/53538#M14796</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-02-08T04:22:55Z</dc:date>
    </item>
  </channel>
</rss>

