<?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 Date Error in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Date-Error/m-p/20703#M4301</link>
    <description>Hello All&lt;BR /&gt;
&lt;BR /&gt;
I am trying to extract the following fields. The issue is with the variable period_end_date which has a DATE9. format. I am getting the error shown below and not able to compute why I am getting the error? I even tried enclosing the date in single quotes but that is not helping too.&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Code&lt;/B&gt;&lt;BR /&gt;
data novantas.tempHH (keep = &lt;BR /&gt;
				hshld_idfr&lt;BR /&gt;
				asgnd_branch_idfr&lt;BR /&gt;
				hd_hshld_cmptd_age&lt;BR /&gt;
				income_rng_type&lt;BR /&gt;
				dpst_acct_cnt&lt;BR /&gt;
				dpst_acct_amt&lt;BR /&gt;
				macro_seg_code&lt;BR /&gt;
				micro_seg_code&lt;BR /&gt;
				period_end_date&lt;BR /&gt;
				);&lt;BR /&gt;
		set whs00.hshld_mnth;&lt;BR /&gt;
		where period_end_date = 29FEB2008;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Error&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
53   data novantas.tempHH (keep =&lt;BR /&gt;
54                   hshld_idfr&lt;BR /&gt;
55                   asgnd_branch_idfr&lt;BR /&gt;
56                   hd_hshld_cmptd_age&lt;BR /&gt;
57                   income_rng_type&lt;BR /&gt;
58                   dpst_acct_cnt&lt;BR /&gt;
59                   dpst_acct_amt&lt;BR /&gt;
60                   macro_seg_code&lt;BR /&gt;
61                   micro_seg_code&lt;BR /&gt;
62                   period_end_date&lt;BR /&gt;
63                   );&lt;BR /&gt;
64           set whs00.hshld_mnth;&lt;BR /&gt;
65           where period_end_date = 29FEB2008;&lt;BR /&gt;
                                       -------&lt;BR /&gt;
                                       22&lt;BR /&gt;
                                       76&lt;BR /&gt;
ERROR: Syntax error while parsing WHERE clause.&lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;,&lt;BR /&gt;
              =, &amp;gt;, &amp;gt;=, AND, EQ, GE, GT, LE, LT, NE, OR, ^=, |, ||, ~=.&lt;BR /&gt;
&lt;BR /&gt;
ERROR 76-322: Syntax error, statement will be ignored.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help.&lt;BR /&gt;
Pappu.</description>
    <pubDate>Fri, 17 Apr 2009 16:35:58 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-04-17T16:35:58Z</dc:date>
    <item>
      <title>Date Error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Date-Error/m-p/20703#M4301</link>
      <description>Hello All&lt;BR /&gt;
&lt;BR /&gt;
I am trying to extract the following fields. The issue is with the variable period_end_date which has a DATE9. format. I am getting the error shown below and not able to compute why I am getting the error? I even tried enclosing the date in single quotes but that is not helping too.&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Code&lt;/B&gt;&lt;BR /&gt;
data novantas.tempHH (keep = &lt;BR /&gt;
				hshld_idfr&lt;BR /&gt;
				asgnd_branch_idfr&lt;BR /&gt;
				hd_hshld_cmptd_age&lt;BR /&gt;
				income_rng_type&lt;BR /&gt;
				dpst_acct_cnt&lt;BR /&gt;
				dpst_acct_amt&lt;BR /&gt;
				macro_seg_code&lt;BR /&gt;
				micro_seg_code&lt;BR /&gt;
				period_end_date&lt;BR /&gt;
				);&lt;BR /&gt;
		set whs00.hshld_mnth;&lt;BR /&gt;
		where period_end_date = 29FEB2008;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Error&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
53   data novantas.tempHH (keep =&lt;BR /&gt;
54                   hshld_idfr&lt;BR /&gt;
55                   asgnd_branch_idfr&lt;BR /&gt;
56                   hd_hshld_cmptd_age&lt;BR /&gt;
57                   income_rng_type&lt;BR /&gt;
58                   dpst_acct_cnt&lt;BR /&gt;
59                   dpst_acct_amt&lt;BR /&gt;
60                   macro_seg_code&lt;BR /&gt;
61                   micro_seg_code&lt;BR /&gt;
62                   period_end_date&lt;BR /&gt;
63                   );&lt;BR /&gt;
64           set whs00.hshld_mnth;&lt;BR /&gt;
65           where period_end_date = 29FEB2008;&lt;BR /&gt;
                                       -------&lt;BR /&gt;
                                       22&lt;BR /&gt;
                                       76&lt;BR /&gt;
ERROR: Syntax error while parsing WHERE clause.&lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;,&lt;BR /&gt;
              =, &amp;gt;, &amp;gt;=, AND, EQ, GE, GT, LE, LT, NE, OR, ^=, |, ||, ~=.&lt;BR /&gt;
&lt;BR /&gt;
ERROR 76-322: Syntax error, statement will be ignored.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help.&lt;BR /&gt;
Pappu.</description>
      <pubDate>Fri, 17 Apr 2009 16:35:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Date-Error/m-p/20703#M4301</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-17T16:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date Error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Date-Error/m-p/20704#M4302</link>
      <description>Never Mind  - I figured it out!!!!!&lt;BR /&gt;
&lt;BR /&gt;
Pappu.</description>
      <pubDate>Fri, 17 Apr 2009 16:47:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Date-Error/m-p/20704#M4302</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-17T16:47:55Z</dc:date>
    </item>
  </channel>
</rss>

