<?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: replace string in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/replace-string/m-p/616181#M180358</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data aaa;
Model='niz_crd_max-1.1-50000-50';output;
Model='Second_Max_niz_crd-1';output;
Model='niz_crd_max-1.2';output;
Run;
data bbb;
set aaa;
ModelNew1 = tranwrd(Model,'niz_crd_max', 'Max');
ModelNew2 = tranwrd(ModelNew1,'Second_Max_niz_crd', 'SecondMax');
ModelNew3 = tranwrd(ModelNew2,'50000', '50K');
ModelNew4 = tranwrd(ModelNew3,'20000', '20K');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 09 Jan 2020 13:19:54 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2020-01-09T13:19:54Z</dc:date>
    <item>
      <title>replace string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-string/m-p/616178#M180355</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to replace&amp;nbsp; following substrings within Model varaible.&lt;/P&gt;
&lt;P&gt;Change&amp;nbsp; &amp;nbsp;"niz_crd_max"&amp;nbsp; &amp;nbsp;to&amp;nbsp; &amp;nbsp;"max"&lt;BR /&gt;Change&amp;nbsp; &amp;nbsp; "Second_Max_niz_crd"&amp;nbsp; &amp;nbsp;to&amp;nbsp; &amp;nbsp;"SecondMax"&lt;BR /&gt;Change&amp;nbsp; &amp;nbsp; "50000"&amp;nbsp; &amp;nbsp;To&amp;nbsp; &amp;nbsp;"50K"&lt;BR /&gt;Change&amp;nbsp; &amp;nbsp; "20000"&amp;nbsp; &amp;nbsp;TO&amp;nbsp; "20K"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data aaa;
Model='niz_crd_max-1.1-50000-50';output;
Model='Second_Max_niz_crd-1';output;
Model='niz_crd_max-1.2'output;
Model='Second_Max_niz_crd-1-50000-50';output;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jan 2020 13:08:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-string/m-p/616178#M180355</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-01-09T13:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: replace string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-string/m-p/616179#M180356</link>
      <description>&lt;P&gt;Use the tranwrd function for example or explain your problem?&lt;/P&gt;&lt;P&gt;Here is a useful &lt;A href="https://support.sas.com/publishing/pubcat/chaps/59343.pdf" target="_blank" rel="noopener"&gt;PDF&lt;/A&gt;&amp;nbsp;for character functions, you'll find anything you need and even more.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 13:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-string/m-p/616179#M180356</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2020-01-09T13:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: replace string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-string/m-p/616180#M180357</link>
      <description>&lt;P&gt;Fully agree to &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/77163"&gt;@Oligolas&lt;/a&gt;: using tranwrd four-times is imho the easiest way to solve the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 13:18:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-string/m-p/616180#M180357</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-01-09T13:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: replace string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-string/m-p/616181#M180358</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data aaa;
Model='niz_crd_max-1.1-50000-50';output;
Model='Second_Max_niz_crd-1';output;
Model='niz_crd_max-1.2';output;
Run;
data bbb;
set aaa;
ModelNew1 = tranwrd(Model,'niz_crd_max', 'Max');
ModelNew2 = tranwrd(ModelNew1,'Second_Max_niz_crd', 'SecondMax');
ModelNew3 = tranwrd(ModelNew2,'50000', '50K');
ModelNew4 = tranwrd(ModelNew3,'20000', '20K');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jan 2020 13:19:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-string/m-p/616181#M180358</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-01-09T13:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: replace string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-string/m-p/616188#M180363</link>
      <description>&lt;P&gt;so as i understand best way is using 4 times&amp;nbsp;&lt;SPAN&gt;tranwrd function as i did &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 13:39:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-string/m-p/616188#M180363</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-01-09T13:39:15Z</dc:date>
    </item>
  </channel>
</rss>

