<?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 Concatenate multiple Colns to one var/col excluding unnecessary words in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577465#M13216</link>
    <description>&lt;P&gt;I re-tried the code and it works! Thank you very much. But I do have a following question. In my dataset, I have some companies named as INC XXX Inc.. If I applied the code to those, I will only get XXX. Is there any way for me to just get rid of the Inc. at the end?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2019 18:03:42 GMT</pubDate>
    <dc:creator>maxjiang6999</dc:creator>
    <dc:date>2019-07-29T18:03:42Z</dc:date>
    <item>
      <title>How to Concatenate multiple Colns to one var/col excluding unnecessary words</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577275#M13176</link>
      <description>&lt;P&gt;First I split the original company names by space and get var1-var16&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data that have:&lt;/P&gt;&lt;P&gt;company names&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var3&amp;nbsp; .... var16&lt;/P&gt;&lt;P&gt;A &amp;amp; B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B&lt;/P&gt;&lt;P&gt;Pear Inc.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Pear&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Inc.&lt;/P&gt;&lt;P&gt;Pears Corp.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Pears&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Corp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the ideal output:&lt;/P&gt;&lt;P&gt;company names&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var3 .... var16&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;reduced_name&lt;/P&gt;&lt;P&gt;A &amp;amp; F&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; F&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A F&lt;/P&gt;&lt;P&gt;Pear Inc.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Pear&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Inc.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Pear&lt;/P&gt;&lt;P&gt;Pears Corp.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Pears&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Corp.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Pears&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The format of the company names is Char 30. (so there're different trailing blanks). So when I directly cat() or cats() them, I don't get what I want.&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 00:26:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577275#M13176</guid>
      <dc:creator>maxjiang6999</dc:creator>
      <dc:date>2019-07-29T00:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to Concatenate multiple Colns to one var/col excluding unnecessary words</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577277#M13177</link>
      <description>&lt;P&gt;You don't show any of the rules for calculating the REDUCED_NAME, so I will leave that part to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The function you should be using is CATX, to leave a single blank between the pieces of the reduced name.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;reduced_name = catx(' ', var1, var3);&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 02:00:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577277#M13177</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-07-29T02:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Concatenate multiple Colns to one var/col excluding unnecessary words</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577278#M13178</link>
      <description>&lt;P&gt;What about using TRANWRD() instead to replace the words you don't want?&lt;/P&gt;
&lt;P&gt;If all the terms are in a separate file you can load the temporary array from the file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data clean;
set have;

array temp(7) $ _temporary_ ('INC', 'INC.', '&amp;amp;', 'CO', 'CO.', 'LTD.', 'LTD');

cleanVar = oldVar;

do i=1 to dim(temp);
cleanVar = tranwrd(cleanVar, temp(i), "");
end;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jul 2019 02:18:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577278#M13178</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-29T02:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Concatenate multiple Colns to one var/col excluding unnecessary words</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577282#M13179</link>
      <description>&lt;P&gt;Thanks for the quick reply. What I want to do for reduced_name is to exclude words like: "LTD","HOLDINGS","CORP","CORP.","CORPORATION","&amp;amp;","LLC","THE". I want to remove those "unimportant" words. Can you help on this?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 02:34:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577282#M13179</guid>
      <dc:creator>maxjiang6999</dc:creator>
      <dc:date>2019-07-29T02:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to Concatenate multiple Colns to one var/col excluding unnecessary words</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577283#M13180</link>
      <description>&lt;P&gt;I tried this code but it didn't work out.&lt;/P&gt;&lt;P&gt;The log only said: numeric values have been converted to character values at he places give by XXX. Variable oldvar is uninitialized.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no error. But in my result, I only see missing values.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 02:36:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577283#M13180</guid>
      <dc:creator>maxjiang6999</dc:creator>
      <dc:date>2019-07-29T02:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Concatenate multiple Colns to one var/col excluding unnecessary words</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577286#M13182</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/283179"&gt;@maxjiang6999&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I tried this code but it didn't work out.&lt;/P&gt;
&lt;P&gt;The log only said: numeric values have been converted to character values at he places give by XXX. &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Variable oldvar is uninitialized.&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;There is no error. But in my result, I only see missing values.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did you change the variable names to reflect your variable names? 'didn't work out' isn't very informative, it doesn't convey any information about what you did, what happened and what the errors were. Including the code you ran and log is much more helpful.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested it and it works partly for me, this was intended to get you started, by showing the process. You'll need to determine the rules and details because cleaning data is a finicky task and tedious. The part not working is the &amp;amp; and I did change it to make everything uppercase because INC does not match inc. You should get the new variable as an uppercase variable regardless.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; 78         data clean;
 79         set have;
 80         
 81         array temp(8) $ _temporary_ ('INC', 'INC.', '&amp;amp;', 'CO', 'CO.', 'LTD.', 'LTD', 'CORP');
 82         
 83         cleanVar = upcase(oldVar);
 84         
 85         do i=1 to dim(temp);
 86         cleanVar = tranwrd(cleanVar, temp(i), "");
 87         end;
 88         
 89         run;
 
 NOTE: There were 3 observations read from the data set WORK.HAVE.
 NOTE: The data set WORK.CLEAN has 3 observations and 3 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Full code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input oldVar $20.;
cards;
A &amp;amp; B
Pears Inc.
Pears Corp
;;;;
run;

data clean;
set have;

array temp(8) $ _temporary_ ('INC', 'INC.', '&amp;amp;', 'CO', 'CO.', 'LTD.', 'LTD', 'CORP');

cleanVar = upcase(oldVar);

do i=1 to dim(temp);
    cleanVar = tranwrd(cleanVar, temp(i), "");
end;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/283179"&gt;@maxjiang6999&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I tried this code but it didn't work out.&lt;/P&gt;
&lt;P&gt;The log only said: numeric values have been converted to character values at he places give by XXX. Variable oldvar is uninitialized.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no error. But in my result, I only see missing values.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 02:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577286#M13182</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-29T02:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to Concatenate multiple Colns to one var/col excluding unnecessary words</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577290#M13184</link>
      <description>&lt;P&gt;You could use regular expressions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
length name $32;
input name $32.;
datalines;
A &amp;amp; B
Pear Inc.
Pears Corp. 
;

data want;
length cleanName $32;
if not prxID then 
    prxID + prxparse("s/\b(INC|LTD|HOLDINGS|CORP|CORPORATION|LLC|THE)\b\.?//io");
set have;
cleanName = compbl(prxChange(prxID, -1, translate(name," ", "&amp;amp;")));
drop prxID;
run;

proc print data=want noobs; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;                                clean
                                Name     name

                                A B      A &amp;amp; B
                                Pear     Pear Inc.
                                Pears    Pears Corp.
&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jul 2019 04:20:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577290#M13184</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-07-29T04:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Concatenate multiple Colns to one var/col excluding unnecessary words</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577447#M13211</link>
      <description>&lt;P&gt;Sorry that I was not very clear about my question at the first place.&amp;nbsp; Let me explain it in another way.&lt;/P&gt;&lt;P&gt;What I have: the original company name&lt;/P&gt;&lt;P&gt;What I want: a new column (reduced_name) = company name exclude&amp;nbsp;('INC.','COMPANY','INC','GROUP','CORPORATION','&amp;amp;','LLC','LTD','THE', 'LTD.', 'HOLDINGS', 'CORP', 'PLC', 'CORP.')&lt;/P&gt;&lt;P&gt;What I did: 1) separate the company name using SCAN() by space and get var1-var16 for each element/word of the name 2) concatenate var1-var16 using CATX(' ', OF var1-var16) based on so many IF conditions (what you see is just part). (please see the screenshot below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way that's more convenient to conclude my IF statements?&lt;BR /&gt;&lt;BR /&gt;Thanks for all the help from you guys.&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 17:12:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577447#M13211</guid>
      <dc:creator>maxjiang6999</dc:creator>
      <dc:date>2019-07-29T17:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Concatenate multiple Colns to one var/col excluding unnecessary words</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577448#M13212</link>
      <description>&lt;P&gt;What I get is still all missing values.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 17:12:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577448#M13212</guid>
      <dc:creator>maxjiang6999</dc:creator>
      <dc:date>2019-07-29T17:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Concatenate multiple Colns to one var/col excluding unnecessary words</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577452#M13213</link>
      <description>&lt;P&gt;Can't guess what's wrong without seeing what you tried. My example up there DOES work.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 17:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577452#M13213</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-07-29T17:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Concatenate multiple Colns to one var/col excluding unnecessary words</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577455#M13215</link>
      <description>&lt;P&gt;Hi I re-tried the code and it did work out partially. What I did:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;data&lt;/FONT&gt; test; &lt;FONT color="#0000FF"&gt;set&lt;/FONT&gt; peers4;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;array&lt;/FONT&gt; temp(8) $&lt;FONT color="#0000FF"&gt;_temporary_&lt;/FONT&gt; ('INC.','COMPANY','INC','GROUP','CORPORATION','&amp;amp;','LLC','LTD','THE', 'LTD.', 'HOLDINGS', 'CORP', 'PLC', 'CORP.','CO');&lt;BR /&gt;cleanvar = upcase(peername);&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;do&lt;/FONT&gt; i = 1 &lt;FONT color="#0000FF"&gt;to&lt;/FONT&gt; dim(temp);&lt;BR /&gt;cleanvar = tranwrd(cleanvar, temp(i),'');&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;end;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Then the log said: too many values for initialization of the array temp. Excess values are ignored.&lt;BR /&gt;&lt;BR /&gt;Can you help? Really appreciate it!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 17:30:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577455#M13215</guid>
      <dc:creator>maxjiang6999</dc:creator>
      <dc:date>2019-07-29T17:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to Concatenate multiple Colns to one var/col excluding unnecessary words</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577465#M13216</link>
      <description>&lt;P&gt;I re-tried the code and it works! Thank you very much. But I do have a following question. In my dataset, I have some companies named as INC XXX Inc.. If I applied the code to those, I will only get XXX. Is there any way for me to just get rid of the Inc. at the end?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 18:03:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577465#M13216</guid>
      <dc:creator>maxjiang6999</dc:creator>
      <dc:date>2019-07-29T18:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to Concatenate multiple Colns to one var/col excluding unnecessary words</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577490#M13219</link>
      <description>&lt;P&gt;There is always a way. But the code I submitted was based on your stated requirement, it doesn't do that.The function prxchange finds matching patterns in the target string from left to right, so I think that you can't get it to change only the last match.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 19:04:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577490#M13219</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-07-29T19:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to Concatenate multiple Colns to one var/col excluding unnecessary words</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577503#M13220</link>
      <description>&lt;P&gt;&lt;FONT color="#0000FF"&gt;array&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;temp(8)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The 8 here indicates the number of elements in the temporary array. You need to increase it to account for the new words you've added.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I don't know if that can be dynamic.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 19:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-Concatenate-multiple-Colns-to-one-var-col-excluding/m-p/577503#M13220</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-29T19:40:09Z</dc:date>
    </item>
  </channel>
</rss>

