<?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: proc reg &amp;quot;where&amp;quot; statement for numerical dates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-reg-quot-where-quot-statement-for-numerical-dates/m-p/816070#M322074</link>
    <description>Kurt, YOU ARE A GENIUS. I cannot thank you enough. This worked. After a three hour long battle.&lt;BR /&gt;&lt;BR /&gt;You are the best.&lt;BR /&gt;&lt;BR /&gt;Have a lovely day.&lt;BR /&gt;&lt;BR /&gt;Rachel</description>
    <pubDate>Wed, 01 Jun 2022 17:24:01 GMT</pubDate>
    <dc:creator>RACHEL2425</dc:creator>
    <dc:date>2022-06-01T17:24:01Z</dc:date>
    <item>
      <title>proc reg "where" statement for numerical dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-reg-quot-where-quot-statement-for-numerical-dates/m-p/816059#M322071</link>
      <description>&lt;P&gt;Hi everyone-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently doing a simple linear regression of a variable over time. My date format right now is in the format (mmddyyyy) [no forward slashes, no letters]. Whenever I try to include a "where" statement when I do proc reg, errors come up. Can anyone help with this? I have included two of the codes that I have tried below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC REG DATA=work.ELYRIA PLOTS = (FITPLOT);&lt;BR /&gt;where '03/24/2021'd &amp;lt;= sasdate &amp;lt;= '04/25/2021'd ;&lt;BR /&gt;MODEL LOGMGC = sasdate;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC REG DATA=work.ELYRIA PLOTS = (FITPLOT);&lt;BR /&gt;where 03/24/2021'd &amp;lt;= sasdate &amp;lt;= 04/25/2021 ;&lt;BR /&gt;MODEL LOGMGC = sasdate;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 17:10:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-reg-quot-where-quot-statement-for-numerical-dates/m-p/816059#M322071</guid>
      <dc:creator>RACHEL2425</dc:creator>
      <dc:date>2022-06-01T17:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc reg "where" statement for numerical dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-reg-quot-where-quot-statement-for-numerical-dates/m-p/816060#M322072</link>
      <description>PROC REG DATA=work.ELYRIA PLOTS = (FITPLOT);&lt;BR /&gt;where 03/24/2021 &amp;lt;= sasdate &amp;lt;= 04/25/2021 ;&lt;BR /&gt;MODEL LOGMGC = sasdate;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;^error with second code in original post. I have fixed it here.</description>
      <pubDate>Wed, 01 Jun 2022 17:11:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-reg-quot-where-quot-statement-for-numerical-dates/m-p/816060#M322072</guid>
      <dc:creator>RACHEL2425</dc:creator>
      <dc:date>2022-06-01T17:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: proc reg "where" statement for numerical dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-reg-quot-where-quot-statement-for-numerical-dates/m-p/816069#M322073</link>
      <description>&lt;P&gt;A SAS date literal&amp;nbsp;&lt;U&gt;must&lt;/U&gt; be in the form&lt;/P&gt;
&lt;PRE&gt;"DDMMMYYYY"d&lt;/PRE&gt;
&lt;P&gt;where DD is the day of the month, MMM the three-letter month abbreviation (e.g JAN for January), and YYYY is the year. Therefore, your WHERE statement must be&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where "24mar2021"d &amp;lt;= sasdate &amp;lt;= "25apr2021"d;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Jun 2022 17:20:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-reg-quot-where-quot-statement-for-numerical-dates/m-p/816069#M322073</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-06-01T17:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: proc reg "where" statement for numerical dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-reg-quot-where-quot-statement-for-numerical-dates/m-p/816070#M322074</link>
      <description>Kurt, YOU ARE A GENIUS. I cannot thank you enough. This worked. After a three hour long battle.&lt;BR /&gt;&lt;BR /&gt;You are the best.&lt;BR /&gt;&lt;BR /&gt;Have a lovely day.&lt;BR /&gt;&lt;BR /&gt;Rachel</description>
      <pubDate>Wed, 01 Jun 2022 17:24:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-reg-quot-where-quot-statement-for-numerical-dates/m-p/816070#M322074</guid>
      <dc:creator>RACHEL2425</dc:creator>
      <dc:date>2022-06-01T17:24:01Z</dc:date>
    </item>
  </channel>
</rss>

