<?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: Grouping Data into weekly data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Grouping-Data-into-weekly-data/m-p/785765#M250805</link>
    <description>&lt;P&gt;Always (as in&amp;nbsp;&lt;STRONG&gt;ALWAYS&lt;/STRONG&gt;) provide example data in data steps with datalines, posted in a code box. Data steps need only a copy/paste and submit to recreate your dataset, while Excel files tell us next to nothing about your dataset(s), as there are no fixed column attributes, and we have to rely on the guessing of PROC IMPORT.&lt;/P&gt;
&lt;P&gt;On top of that, Excel files are not accessible from the net for many people as they work behind corporate firewalls that block Office files for security reasons.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The easiest way to tackle your issue is usually to assign a weekly format to your date variable and let the summary/reporting procedures do it automatically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Dec 2021 14:44:20 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-12-13T14:44:20Z</dc:date>
    <item>
      <title>Grouping Data into weekly data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Grouping-Data-into-weekly-data/m-p/785764#M250804</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have attached an Excel file with two tabs&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sample input dataset and desired output&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would appreciate your help in helping me write a code to group te data into weeks beginning Sunday and having the desired output&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thankyou&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 14:37:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Grouping-Data-into-weekly-data/m-p/785764#M250804</guid>
      <dc:creator>Baba9</dc:creator>
      <dc:date>2021-12-13T14:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping Data into weekly data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Grouping-Data-into-weekly-data/m-p/785765#M250805</link>
      <description>&lt;P&gt;Always (as in&amp;nbsp;&lt;STRONG&gt;ALWAYS&lt;/STRONG&gt;) provide example data in data steps with datalines, posted in a code box. Data steps need only a copy/paste and submit to recreate your dataset, while Excel files tell us next to nothing about your dataset(s), as there are no fixed column attributes, and we have to rely on the guessing of PROC IMPORT.&lt;/P&gt;
&lt;P&gt;On top of that, Excel files are not accessible from the net for many people as they work behind corporate firewalls that block Office files for security reasons.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The easiest way to tackle your issue is usually to assign a weekly format to your date variable and let the summary/reporting procedures do it automatically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 14:44:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Grouping-Data-into-weekly-data/m-p/785765#M250805</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-12-13T14:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping Data into weekly data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Grouping-Data-into-weekly-data/m-p/785766#M250806</link>
      <description>&lt;P&gt;As I refuse to download file attachments, I agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;who said "&lt;SPAN&gt;Always (as in&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ALWAYS&lt;/STRONG&gt;&lt;SPAN&gt;) provide example data in data steps with datalines, posted in a code box."&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Since SAS has already done the hard work of figuring out what dates are in which weeks, you should definitely use those methods, rather than trying to create your own. The best way is to apply a week format to your calendar variable, and then most analyses in SAS will use the week format to separate results by week.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 14:51:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Grouping-Data-into-weekly-data/m-p/785766#M250806</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-12-13T14:51:45Z</dc:date>
    </item>
  </channel>
</rss>

