<?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: Summarize frequency According to DATE in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Summarize-frequency-According-to-DATE/m-p/853022#M37506</link>
    <description>I mean if some could write a pseudo code with what functions and procedures to use. It would be a great help.</description>
    <pubDate>Tue, 10 Jan 2023 09:17:18 GMT</pubDate>
    <dc:creator>Kirito1</dc:creator>
    <dc:date>2023-01-10T09:17:18Z</dc:date>
    <item>
      <title>Summarize frequency According to DATE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Summarize-frequency-According-to-DATE/m-p/853021#M37505</link>
      <description>&lt;P&gt;I am working on a data similar to this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kirito1_0-1673341554777.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79216iA87A999E14F35349/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kirito1_0-1673341554777.png" alt="Kirito1_0-1673341554777.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And the data I want should be like as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kirito1_1-1673341602606.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79217iBB7D634A57B7AC97/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kirito1_1-1673341602606.png" alt="Kirito1_1-1673341602606.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to count number of emails approved on the date.&lt;/P&gt;&lt;P&gt;Can someone guide how should I approach this problem.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 09:07:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Summarize-frequency-According-to-DATE/m-p/853021#M37505</guid>
      <dc:creator>Kirito1</dc:creator>
      <dc:date>2023-01-10T09:07:36Z</dc:date>
    </item>
    <item>
      <title>HELP in Extracting desired data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Summarize-frequency-According-to-DATE/m-p/853010#M37512</link>
      <description>&lt;P&gt;I was working on SAS, I have data something like this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kirito1_0-1673336706297.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79214i5924C1968E2E0842/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kirito1_0-1673336706297.png" alt="Kirito1_0-1673336706297.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now what I want is Frequency of each email_id approval against EMP_CODE.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;EMP_CODE&lt;/TD&gt;&lt;TD&gt;DOA ON 7&lt;/TD&gt;&lt;TD&gt;DOA on 8&lt;/TD&gt;&lt;TD&gt;DOA on 9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1001&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1002&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1003&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1004&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1005&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1006&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;One way is to extract 3 data for each date and use proc freq and then joining all those three proc freq to join(I dont know if thats even possible).&lt;/P&gt;&lt;P&gt;help would be appreciated greatly.........Thank you in advance for all the contributors.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 08:07:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Summarize-frequency-According-to-DATE/m-p/853010#M37512</guid>
      <dc:creator>Kirito1</dc:creator>
      <dc:date>2023-01-10T08:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize frequency According to DATE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Summarize-frequency-According-to-DATE/m-p/853022#M37506</link>
      <description>I mean if some could write a pseudo code with what functions and procedures to use. It would be a great help.</description>
      <pubDate>Tue, 10 Jan 2023 09:17:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Summarize-frequency-According-to-DATE/m-p/853022#M37506</guid>
      <dc:creator>Kirito1</dc:creator>
      <dc:date>2023-01-10T09:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize frequency According to DATE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Summarize-frequency-According-to-DATE/m-p/853027#M37507</link>
      <description>&lt;P&gt;If you're after code then it's normally really appreciated if you provide sample data in the form of a working SAS data step (similar to the Have data step below), show the desired result and explain the logic to get from have to want.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  infile datalines dsd truncover;
  input emp_id $ doa :date9.;
  format doa date9.;
  datalines;
1001,01jan2023
1001,01jan2023
1001,02jan2023
1002,01jan2023
1002,02jan2023
1002,04jan2023
;

options missing=' ';
proc tabulate data=have;
  class emp_id doa;
  keylabel n=' ';
  table emp_id, doa;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1673345656592.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79221iE4525B68712A9B8F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1673345656592.png" alt="Patrick_0-1673345656592.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You could also use Proc Means or Proc Report for such a report. Each procedure provides a bit different functionality with Proc Report providing the most flexibility when it comes to layout and additional "in report" calculations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You didn't write it explicitly but I made the assumption you're after a report and not a table - also because the data structure of your Have table is "better" to work with than it would be for a Want table with the structure you're showing.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 21:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Summarize-frequency-According-to-DATE/m-p/853027#M37507</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-01-10T21:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize frequency According to DATE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Summarize-frequency-According-to-DATE/m-p/853032#M37508</link>
      <description>Thank you so very much..............Patrick.......Much Appreciated man</description>
      <pubDate>Tue, 10 Jan 2023 10:47:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Summarize-frequency-According-to-DATE/m-p/853032#M37508</guid>
      <dc:creator>Kirito1</dc:creator>
      <dc:date>2023-01-10T10:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize frequency According to DATE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Summarize-frequency-According-to-DATE/m-p/853036#M37509</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=have;
    tables emp_code1*date_of_approval;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please, from now on, do not provide data as screen captures, do not provide data as Excel files. Please provide data as working SAS data step code, which you can type yourself, or follow &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;these instructions&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 11:25:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Summarize-frequency-According-to-DATE/m-p/853036#M37509</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-10T11:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: HELP in Extracting desired data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Summarize-frequency-According-to-DATE/m-p/853042#M37513</link>
      <description>&lt;P&gt;Please provide example data as &lt;FONT color="#FF0000"&gt;working&lt;/FONT&gt; SAS data step code, which you can type in yourself, or you can follow &lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;these instructions&lt;/A&gt;.&amp;nbsp;We cannot work with data in screen captures or data in Excel files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please do not double-post your question. The answer using PROC FREQ is in your &lt;A href="https://communities.sas.com/t5/New-SAS-User/Summarize-frequency-According-to-DATE/m-p/853036#M37509" target="_self"&gt;other thread&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 11:46:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Summarize-frequency-According-to-DATE/m-p/853042#M37513</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-10T11:46:03Z</dc:date>
    </item>
  </channel>
</rss>

