<?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: Frequency of words in char var in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Frequency-of-words-in-char-var/m-p/789921#M252856</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data long;
set have;
length desc $20; /* set sufficient length as needed */
do i = 1 to countw(transfer_description," ");
  desc = scan(transfer_description,i," ");
  output;
end;
keep desc;
run;

proc freq data=long;
tables desc;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 13 Jan 2022 09:08:11 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-01-13T09:08:11Z</dc:date>
    <item>
      <title>Frequency of words in char var</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Frequency-of-words-in-char-var/m-p/789890#M252832</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;The data set contain 3 variables: Customer ID, transfer description, amount.&lt;/P&gt;
&lt;P&gt;transfer description is a char variable.&lt;/P&gt;
&lt;P&gt;Each customer ID can have multiple rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to do the following :&lt;/P&gt;
&lt;P&gt;Find the frequency distribution of separate words from field "transfer description"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
informat transfer_description $5000.;
input ID  transfer_description  amount;
infile datalines delimiter='|';
datalines;
111|Transfer to my friend Joe Kaplan|1000 
111|Salary IBM|2000
111|Salary WIZZ|3980
111|Transfer to my father|500
333|Transfer to my gf|4000
333|Son help|3000
222|Salary IBM|1500
222|Charity|2500
222|Charity|3000
222|transfer to my friend Jula|8000
;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Jan 2022 06:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Frequency-of-words-in-char-var/m-p/789890#M252832</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2022-01-13T06:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency of words in char var</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Frequency-of-words-in-char-var/m-p/789914#M252853</link>
      <description>&lt;P&gt;Seems to be dealing with the same problem as &lt;A href="https://communities.sas.com/t5/SAS-Programming/split-char-into-multiple-columns-and-then-append-the-values-into/m-p/789913" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/split-char-into-multiple-columns-and-then-append-the-values-into/m-p/789913&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want the frequencies by id?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 07:36:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Frequency-of-words-in-char-var/m-p/789914#M252853</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-01-13T07:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency of words in char var</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Frequency-of-words-in-char-var/m-p/789921#M252856</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data long;
set have;
length desc $20; /* set sufficient length as needed */
do i = 1 to countw(transfer_description," ");
  desc = scan(transfer_description,i," ");
  output;
end;
keep desc;
run;

proc freq data=long;
tables desc;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Jan 2022 09:08:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Frequency-of-words-in-char-var/m-p/789921#M252856</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-01-13T09:08:11Z</dc:date>
    </item>
  </channel>
</rss>

