<?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 Organize Date Intervals by weekly in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Organize-Date-Intervals-by-weekly/m-p/382877#M277000</link>
    <description>&lt;P&gt;Help the intern!&lt;BR /&gt;&lt;BR /&gt;I have imported dates when our company has received applications from excel into sas. The dates read as ddmonyyyy in SAS and i'm looking to find how many applications we received since 01jun2016 week by week afterwards. Any ideas on how to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname DESE 'C:\Users\Documents\DESE';&lt;BR /&gt;proc import out = DESE.datesreceived&lt;BR /&gt;datafile = 'C:\Users\Documents\DESE\DatesReceived.xlsx'&lt;BR /&gt;DBMS = xlsx replace;&lt;BR /&gt;sheet = 'Sheet1';&lt;BR /&gt;getnames = yes;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc freq data = dese.datesreceived;&lt;BR /&gt;table date_received;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jul 2017 17:50:11 GMT</pubDate>
    <dc:creator>ogarduno</dc:creator>
    <dc:date>2017-07-27T17:50:11Z</dc:date>
    <item>
      <title>Organize Date Intervals by weekly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Organize-Date-Intervals-by-weekly/m-p/382877#M277000</link>
      <description>&lt;P&gt;Help the intern!&lt;BR /&gt;&lt;BR /&gt;I have imported dates when our company has received applications from excel into sas. The dates read as ddmonyyyy in SAS and i'm looking to find how many applications we received since 01jun2016 week by week afterwards. Any ideas on how to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname DESE 'C:\Users\Documents\DESE';&lt;BR /&gt;proc import out = DESE.datesreceived&lt;BR /&gt;datafile = 'C:\Users\Documents\DESE\DatesReceived.xlsx'&lt;BR /&gt;DBMS = xlsx replace;&lt;BR /&gt;sheet = 'Sheet1';&lt;BR /&gt;getnames = yes;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc freq data = dese.datesreceived;&lt;BR /&gt;table date_received;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 17:50:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Organize-Date-Intervals-by-weekly/m-p/382877#M277000</guid>
      <dc:creator>ogarduno</dc:creator>
      <dc:date>2017-07-27T17:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Organize Date Intervals by weekly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Organize-Date-Intervals-by-weekly/m-p/382891#M277001</link>
      <description>&lt;P&gt;Apply a week format, untested, you can look up the appropriate format for your needs. To filter after a specified date add a where.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data = dese.datesreceived;&lt;BR /&gt;where date_received &amp;gt; '01Jun2016'd;
table date_received;
format date_received week.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Jul 2017 17:51:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Organize-Date-Intervals-by-weekly/m-p/382891#M277001</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-27T17:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Organize Date Intervals by weekly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Organize-Date-Intervals-by-weekly/m-p/382993#M277002</link>
      <description>&lt;P&gt;i'm getting a "ERROR: The format WEEK was not found or could not be loaded" when trying your solution. do you know what could be the problem?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 18:01:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Organize-Date-Intervals-by-weekly/m-p/382993#M277002</guid>
      <dc:creator>ogarduno</dc:creator>
      <dc:date>2017-07-27T18:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Organize Date Intervals by weekly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Organize-Date-Intervals-by-weekly/m-p/383453#M277003</link>
      <description>&lt;P&gt;There are three different week formats that may be of Interest WeekU, WeekV and WeekW. Each uses a slightly different count method based on the start of the week and year&lt;/P&gt;
&lt;P&gt;WeekU uses Sunday as the first day of the week and number returned is the week within year, range 0-53&lt;/P&gt;
&lt;P&gt;WeekV uses Monday as the first day of the week , week 1 is the week that includes both Jan 4 and the first Thursday of the year, returns 01-53&lt;/P&gt;
&lt;P&gt;WeekW uses Monday as the first day of the week and returns 00 - 53.&lt;/P&gt;
&lt;P&gt;Depending on the width of the format used, min of 2 max 200 and default of 11, you'll get year and day of week information as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to test the results for the first few days of the year to see which one you may want for your rules. Note that depending on the actual day of the year and year some of the dates may be considered as part of the last week of the previous year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 19:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Organize-Date-Intervals-by-weekly/m-p/383453#M277003</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-07-27T19:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Organize Date Intervals by weekly</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Organize-Date-Intervals-by-weekly/m-p/383464#M277004</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/153898"&gt;@ogarduno&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;i'm getting a "ERROR: The format WEEK was not found or could not be loaded" when trying your solution. do you know what could be the problem?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;untested, you can look up the appropriate format for your needs.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#p07rezhgdv34wtn1jih4ltebcoy9.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#p07rezhgdv34wtn1jih4ltebcoy9.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 19:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Organize-Date-Intervals-by-weekly/m-p/383464#M277004</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-27T19:40:50Z</dc:date>
    </item>
  </channel>
</rss>

