<?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: How to count the number of same value in a row with sas like the countif function in excel does? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263690#M51620</link>
    <description>&lt;P&gt;FreelanceReinhard provided the working solution, so you can&amp;nbsp;mark the answer as the solution.&lt;BR /&gt;I've opened an incident with tech support to sort the tranwrd() issue out.&amp;nbsp;I don't remember that it worked that way (but then my memory...) and if it does the documentation needs fixing.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Apr 2016 21:48:01 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2016-04-13T21:48:01Z</dc:date>
    <item>
      <title>How to count the number of same value in a row with sas like the countif function in excel does?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263335#M51531</link>
      <description>&lt;P&gt;Hi everyone, is there a&amp;nbsp;sas function that is similiar to the countif in excel that allows you to count of number of same value in a row or in a column. To be specific, here is an example below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose, I have a datatable&amp;nbsp;called test&amp;nbsp;that shows&amp;nbsp;the following data below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp;A1&amp;nbsp; A2&amp;nbsp;&amp;nbsp;A3&amp;nbsp; A4&amp;nbsp; A5&amp;nbsp; A6&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; cc&amp;nbsp;&amp;nbsp;cn&amp;nbsp;&amp;nbsp;&amp;nbsp;cc&amp;nbsp;&amp;nbsp;cn&amp;nbsp;&amp;nbsp; cn&amp;nbsp;&amp;nbsp; ce&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ca&amp;nbsp; cc&amp;nbsp;&amp;nbsp;&amp;nbsp;cc&amp;nbsp;&amp;nbsp; ce&amp;nbsp;&amp;nbsp;ca&amp;nbsp;&amp;nbsp; cc&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp; cc&amp;nbsp; ca&amp;nbsp;&amp;nbsp; cn&amp;nbsp;&amp;nbsp; ce&amp;nbsp; cc&amp;nbsp;&amp;nbsp; cc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is " How can I count the number of "cc" in each observation in sas? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 20:37:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263335#M51531</guid>
      <dc:creator>Dancer_on_data</dc:creator>
      <dc:date>2016-04-12T20:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of same value in a row with sas like the countif function in excel does?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263341#M51533</link>
      <description>&lt;P&gt;No countif function in SAS, but you can make your own logic.&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data HAVE;
input (ID  A1  A2  A3  A4  A5  A6 ) (: $);
cards;
1    cc  cn   cc  cn   cn   ce
2    ca  cc   cc   ce  ca   cc
3    cc  ca   cn   ce  cc   cc
run;
data WANT;
  set HAVE;
  NB_CC=lengthn(compress(tranwrd(catx(' ',of A1-A6),'cc','~'),'~','k'));
  putlog NB_CC=;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;NB_CC=2&lt;/P&gt;
&lt;P&gt;NB_CC=3&lt;/P&gt;
&lt;P&gt;NB_CC=3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 21:20:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263341#M51533</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-04-12T21:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of same value in a row with sas like the countif function in excel does?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263344#M51534</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/80455"&gt;@Dancer_on_data﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's another suggestion:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NB_CC=count(catx(' ',of A:),'cc');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Like&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ﻿&lt;/a&gt;'s approach, this would count 'cc' also in substrings of an A&lt;EM&gt;i&lt;/EM&gt; (&lt;EM&gt;i&lt;/EM&gt;=1, ..., 6), though (e.g. in 'accord'). To avoid this, one could modify the definition to something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NB_CC=count(catx('~~','x',of A:,'x'),'~cc~');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;with a character, '~', chosen such that it does not occur in any of the A&lt;EM&gt;i&lt;/EM&gt;, and an arbitrary non-blank character&amp;nbsp;'x'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since the CATX function removes leading blanks, &lt;FONT face="courier new,courier"&gt;' &amp;nbsp; cc'&lt;/FONT&gt; would still be counted as &lt;FONT face="courier new,courier"&gt;'cc'&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 23:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263344#M51534</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-04-12T23:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of same value in a row with sas like the countif function in excel does?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263345#M51535</link>
      <description>&lt;P&gt;Another way using combination of count and cats functions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;count_cc=count(cats(of A1-A6),'cc');&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 23:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263345#M51535</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2016-04-12T23:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of same value in a row with sas like the countif function in excel does?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263355#M51536</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh﻿&lt;/a&gt;&amp;nbsp;You are right! How come? I protest! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;The tranwrd function was supposed to take care of the flaw you mention as it is supposed to look for words. Is this expected behaviour?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The online doc:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1 class="xis-title"&gt;&lt;FONT size="4"&gt;TRANSTRN Function&lt;/FONT&gt;&lt;/H1&gt;
&lt;P class="xis-shortDescription"&gt;Replaces or removes all occurrences of a substring in a character string.&lt;/P&gt;
&lt;P class="xis-shortDescription"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H1 class="xis-title"&gt;&lt;FONT size="4"&gt;TRANWRD Function&lt;/FONT&gt;&lt;/H1&gt;
&lt;P class="xis-shortDescription"&gt;Replaces or removes all occurrences of a word in a character string.&lt;/P&gt;
&lt;P class="xis-shortDescription"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xis-shortDescription"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xis-shortDescription"&gt;One says &lt;STRONG&gt;word&lt;/STRONG&gt; and the other one reads &lt;STRONG&gt;substring&lt;/STRONG&gt;, but&amp;nbsp;they do the same thing? Really?&lt;/P&gt;
&lt;P class="xis-shortDescription"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xis-shortDescription"&gt;Is there no difference between the tranwrd and transtrn functions except when the replacement string is empty? If so, talk about a misnomer! And about bad documentation!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 00:30:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263355#M51536</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-04-13T00:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of same value in a row with sas like the countif function in excel does?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263366#M51538</link>
      <description>&lt;P&gt;countw() &amp;nbsp;would be better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can use ARRAY which can avoid the error when there are some delimiter in variable value .&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 01:05:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263366#M51538</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-04-13T01:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of same value in a row with sas like the countif function in excel does?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263376#M51541</link>
      <description>&lt;P&gt;Also from the SAS&amp;nbsp;documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="xis-title"&gt;Definition of "Word"&lt;/H3&gt;
&lt;DIV class="xis-topicContent"&gt;
&lt;DIV class="xis-paragraph"&gt;In the COUNTW function, "word" refers to a substring that has one of the following characteristics:
&lt;DIV class="xis-listUnordered"&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV class="xis-item"&gt;is bounded on the left by a delimiter or the beginning of the string&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="xis-item"&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;is bounded on the right by a delimiter or the end of the string&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class="xis-item"&gt;
&lt;DIV class="xis-paraSimpleFirst"&gt;contains no delimiters, except if you use the Q modifier and the delimiters are within substrings that have quotation marks&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="xis-note"&gt;&lt;SPAN class="xis-noteGenText"&gt;Note: &lt;/SPAN&gt;The definition of "word" is the same in both the SCAN function and the COUNTW function.&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;Delimiter refers to any of several characters that you can specify to separate words.&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Apr 2016 02:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263376#M51541</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-04-13T02:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of same value in a row with sas like the countif function in excel does?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263437#M51551</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/42042"&gt;@stat_sas&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Another way using combination of count and cats functions:&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/42042"&gt;@stat_sas&lt;/a&gt;: Chris and I used CATX because it's important to keep strings like 'ac' and 'ce' apart to prevent the formation&amp;nbsp;of new occurrences of 'cc' just by concatenation ('a&lt;STRONG&gt;cc&lt;/STRONG&gt;e').&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 09:02:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263437#M51551</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-04-13T09:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of same value in a row with sas like the countif function in excel does?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263464#M51556</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I agree that the wording of the TRANWRD documentation and in fact the function name itself are a bit misleading, especially from today's perspective. This has probably historical reasons. When I "grew up" (with SAS 6.12), the name TRANWRD for a function replacing substrings seemed fairly natural to distinguish it from TRANSLATE (replacing single characters), although the SCAN function documentation used the term "word" in a narrower sense.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the advent of more word-oriented functions (in the narrower sense) in SAS 9, esp. SAS 9.2, like COUNTW, FINDW and INDEXW, it has become apparent that the naming of TRANWRD was not ideal ("TRANSTR" would have been more to the point). That's how I assume the new function TRANSTRN (SAS 9.2) got its name. But TRANWRD remains for backward compatibility and its close relationship with TRANSTRN (like SUBSTR/SUBSTRN) is obscured by the difference in the names.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 10:08:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263464#M51556</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-04-13T10:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of same value in a row with sas like the countif function in excel does?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263469#M51559</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;countw() &amp;nbsp;would be better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can use ARRAY which can avoid the error when there are some delimiter in variable value .&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;A function which counts the occurrences of a specified word-like substring would be helpful indeed (with the limitation you mention). But "COUNTW" is already the name of the function which&amp;nbsp;returns the number of&amp;nbsp;&lt;EM&gt;all&lt;/EM&gt; words in a string.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 10:34:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263469#M51559</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-04-13T10:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of same value in a row with sas like the countif function in excel does?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263501#M51571</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh﻿&lt;/a&gt;, I like &lt;FONT face="Courier New" size="2"&gt;count(catx(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'~~'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'x'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,of A:,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'x'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;),&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'~cc~'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 13:26:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263501#M51571</guid>
      <dc:creator>Dancer_on_data</dc:creator>
      <dc:date>2016-04-13T13:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of same value in a row with sas like the countif function in excel does?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263507#M51574</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ﻿&lt;/a&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp﻿&lt;/a&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/42042"&gt;@stat_sas﻿&lt;/a&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh﻿&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all for helping solve the problem!&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 13:46:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263507#M51574</guid>
      <dc:creator>Dancer_on_data</dc:creator>
      <dc:date>2016-04-13T13:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of same value in a row with sas like the countif function in excel does?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263690#M51620</link>
      <description>&lt;P&gt;FreelanceReinhard provided the working solution, so you can&amp;nbsp;mark the answer as the solution.&lt;BR /&gt;I've opened an incident with tech support to sort the tranwrd() issue out.&amp;nbsp;I don't remember that it worked that way (but then my memory...) and if it does the documentation needs fixing.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 21:48:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263690#M51620</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-04-13T21:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to count the number of same value in a row with sas like the countif function in excel does?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263732#M51629</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh﻿&lt;/a&gt;&amp;nbsp;Thank you for your reply. I've asked SAS to update the documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll also suggest them that they should create a TRANSTR function keyword and keep TRANWRD as a legacy alias.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2016 02:34:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-count-the-number-of-same-value-in-a-row-with-sas-like-the/m-p/263732#M51629</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-04-14T02:34:08Z</dc:date>
    </item>
  </channel>
</rss>

