<?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: Assign number of happening times in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Assign-number-of-happening-times/m-p/695561#M79784</link>
    <description>&lt;P&gt;With a subject line involving "happening times" I thought this might be a question about something from the late 1960's!?&lt;/P&gt;</description>
    <pubDate>Fri, 30 Oct 2020 17:51:37 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-10-30T17:51:37Z</dc:date>
    <item>
      <title>Assign number of happening times</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Assign-number-of-happening-times/m-p/695500#M79770</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I would like to know how to count the number of the event happening times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Event&lt;/P&gt;&lt;P&gt;basketball&lt;/P&gt;&lt;P&gt;basketball&lt;/P&gt;&lt;P&gt;basketball&lt;/P&gt;&lt;P&gt;football&lt;/P&gt;&lt;P&gt;football&lt;/P&gt;&lt;P&gt;baseball&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;Event&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NO&lt;/P&gt;&lt;P&gt;basketball&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;basketball&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;basketball&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;football&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;football&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;baseball&amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What data step can make the result like that? Please help, thank you&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 14:56:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Assign-number-of-happening-times/m-p/695500#M79770</guid>
      <dc:creator>rx5873</dc:creator>
      <dc:date>2020-10-30T14:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Assign number of happening times</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Assign-number-of-happening-times/m-p/695503#M79771</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 input Event :$12.;
 cards;
basketball

basketball

basketball

football

football

baseball
;

data want;
 set have;
 by Event notsorted;
 if first.Event then no=0;
 no+1;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Oct 2020 14:59:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Assign-number-of-happening-times/m-p/695503#M79771</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-10-30T14:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Assign number of happening times</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Assign-number-of-happening-times/m-p/695504#M79772</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    by event notsorted;
    if first.event then no=0;
    no+1;
run;
    &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Assumes the data is grouped by event.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 14:59:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Assign-number-of-happening-times/m-p/695504#M79772</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-10-30T14:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Assign number of happening times</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Assign-number-of-happening-times/m-p/695561#M79784</link>
      <description>&lt;P&gt;With a subject line involving "happening times" I thought this might be a question about something from the late 1960's!?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 17:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Assign-number-of-happening-times/m-p/695561#M79784</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-30T17:51:37Z</dc:date>
    </item>
  </channel>
</rss>

