<?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: remove some extenstion names and add % symbol in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/remove-some-extenstion-names-and-add-symbol/m-p/531763#M145621</link>
    <description>&lt;P&gt;Readability of code is only one reason we have pointed out that code should be pasted into a code box opened with the forum's {I} or "running man" icon.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jan 2019 19:04:34 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-01-31T19:04:34Z</dc:date>
    <item>
      <title>remove some extenstion names and add % symbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/remove-some-extenstion-names-and-add-symbol/m-p/531704#M145579</link>
      <description>&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;industry&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;ashok industries pvt ltd&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;sai industries limited&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;a&amp;amp;b&amp;amp;c&amp;nbsp; industries Ltd.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;x&amp;amp;y&amp;amp;z industries ltd&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;chaitinya industries Pvt. Ltd.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;(sathya sai industries) Co.Ltd&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;sai harsha industries (Pvt.Ltd)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you observe above dataset every record has one extenstion name like 'pvt ltd', 'ltd','limited' so&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can we remove that extenstion name and '%' like see beow dataset&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;industry&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;ashok industries%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;sai industries%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;a&amp;amp;b&amp;amp;c&amp;nbsp; industries%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;x&amp;amp;y&amp;amp;z industries%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;chaitinya industries%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;(sathya sai industries)%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;sai harsha industries%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 31 Jan 2019 16:34:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/remove-some-extenstion-names-and-add-symbol/m-p/531704#M145579</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2019-01-31T16:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: remove some extenstion names and add % symbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/remove-some-extenstion-names-and-add-symbol/m-p/531726#M145594</link>
      <description>i created one dataset (possible values) i want to know postion of the extenstion name so i wrote one program but i am getting only one record once check the code data ext ; input ext$ ; cards ; pvt ltd limited Ltd. ltd pvt.Ltd Co.lLtd (Pvt.Ltd) ; proc sql ; select count(*) into:count from ext ; select upcase(ext) into:ext1-:ext%left(&amp;amp;count) from ext ; quit; %put &amp;amp;ext1 &amp;amp;ext2 ; data ex2 ; set ex1 ; a=reverse(compbl(industry)) ; run; proc sort data=ex2 out=ex3 ;by a ;run; data ex4; set ex3 ; b=left(reverse(a)) ; drop a industry ;rename b=industry ; run; %macro ex1 ; data ex5 ; set ex4 ; %do i=1 %to &amp;amp;count ; new=find(upcase(industry),"&amp;amp;&amp;amp;ext&amp;amp;i.") ; %end; run; %mend; %ex1 ;</description>
      <pubDate>Thu, 31 Jan 2019 17:25:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/remove-some-extenstion-names-and-add-symbol/m-p/531726#M145594</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2019-01-31T17:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: remove some extenstion names and add % symbol</title>
      <link>https://communities.sas.com/t5/SAS-Programming/remove-some-extenstion-names-and-add-symbol/m-p/531763#M145621</link>
      <description>&lt;P&gt;Readability of code is only one reason we have pointed out that code should be pasted into a code box opened with the forum's {I} or "running man" icon.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 19:04:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/remove-some-extenstion-names-and-add-symbol/m-p/531763#M145621</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-31T19:04:34Z</dc:date>
    </item>
  </channel>
</rss>

