<?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: SAS Dates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Dates/m-p/156692#M30603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is "same"&amp;nbsp; in where clause?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Aug 2014 15:02:40 GMT</pubDate>
    <dc:creator>stat_sas</dc:creator>
    <dc:date>2014-08-11T15:02:40Z</dc:date>
    <item>
      <title>SAS Dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Dates/m-p/156691#M30602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the dates like shown below used in the dataset and so I put those in Macro variables.&lt;/P&gt;&lt;P&gt;The date is numeric also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let start =20130901;&lt;/P&gt;&lt;P&gt;%let end =20140831;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me understand why I am getting this kind of error?????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data Want;&lt;/P&gt;&lt;P&gt;set have(keep=Account Date Numerator Denominator);&lt;/P&gt;&lt;P&gt;where Numerator=1;&lt;/P&gt;&lt;P&gt;where same and Date between "&amp;amp;start"D and "&amp;amp;end"D ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Invalid date/time/datetime constant "20130901"D.&lt;/P&gt;&lt;P&gt;ERROR: Invalid date/time/datetime constant "20140831"D.&lt;/P&gt;&lt;P&gt;ERROR: Syntax error while parsing WHERE clause.&lt;/P&gt;&lt;P&gt;NOTE: WHERE clause has been cleared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 14:53:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Dates/m-p/156691#M30602</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2014-08-11T14:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Dates/m-p/156692#M30603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is "same"&amp;nbsp; in where clause?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 15:02:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Dates/m-p/156692#M30603</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-08-11T15:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Dates/m-p/156693#M30604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS date literals MUST be in the form ddMMMyy or ddMMMyyyy such as '31AUG2014'd NOT '20140831'D as you used them in the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 15:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Dates/m-p/156693#M30604</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-08-11T15:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Dates/m-p/156694#M30605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use date constants as documented.&amp;nbsp;&amp;nbsp; Using mmm is the char abrevation not numbers.&amp;nbsp; &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/67401/HTML/default/viewer.htm#p0cq7f0icfjr8vn19vyunwmmsl7m.htm" title="http://support.sas.com/documentation/cdl/en/lrcon/67401/HTML/default/viewer.htm#p0cq7f0icfjr8vn19vyunwmmsl7m.htm"&gt;SAS(R) 9.4 Language Reference: Concepts, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/67407/HTML/default/viewer.htm#n1xbr9r0s9veq0n137iftzxq4g7e.htm" title="http://support.sas.com/documentation/cdl/en/lestmtsref/67407/HTML/default/viewer.htm#n1xbr9r0s9veq0n137iftzxq4g7e.htm"&gt;SAS(R) 9.4 Statements: Reference, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The constant&amp;nbsp; will be convert behind to a number. The date variable is coming in... same type? (you should know)&lt;/P&gt;&lt;P&gt;same is now a variable, new one, getting initialized with (missing). As a boolean it is false.&lt;/P&gt;&lt;P&gt;..... update: same is accepted syntax as is between with where statement.&lt;/P&gt;&lt;P&gt;Between an known with SQL &lt;A href="http://support.sas.com/documentation/cdl/en/sqlproc/65065/HTML/default/viewer.htm#n0ir3fmhicpfo7n11bfqjn471qkz.htm" title="http://support.sas.com/documentation/cdl/en/sqlproc/65065/HTML/default/viewer.htm#n0ir3fmhicpfo7n11bfqjn471qkz.htm"&gt;SAS(R) 9.4 SQL Procedure User's Guide&lt;/A&gt; not in a normal datastep if statement &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/67401/HTML/default/viewer.htm#p00iah2thp63bmn1lt20esag14lh.htm" title="http://support.sas.com/documentation/cdl/en/lrcon/67401/HTML/default/viewer.htm#p00iah2thp63bmn1lt20esag14lh.htm"&gt;SAS(R) 9.4 Language Reference: Concepts, Third Edition&lt;/A&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The between is however found at where processing &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/67401/HTML/default/viewer.htm#p0eaz2e63dlj17n1i5z17z3h84vp.htm" title="http://support.sas.com/documentation/cdl/en/lrcon/67401/HTML/default/viewer.htm#p0eaz2e63dlj17n1i5z17z3h84vp.htm"&gt;SAS(R) 9.4 Language Reference: Concepts, Third Edition&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The same and is also there.&amp;nbsp; Nice, getting the old interactive approach back from my memory (FSP).&amp;nbsp; &lt;BR /&gt;I only do not understand the "same and" coding in a batch/code programming way &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 15:54:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Dates/m-p/156694#M30605</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-08-11T15:54:06Z</dc:date>
    </item>
  </channel>
</rss>

