<?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 Replacing Values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Replacing-Values/m-p/781687#M249116</link>
    <description>&lt;P&gt;Dear All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a few values in a variable A of a dataset as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;A&lt;/P&gt;
&lt;P&gt;Superb xyz&lt;/P&gt;
&lt;P&gt;XYZ super&lt;/P&gt;
&lt;P&gt;good xyz&lt;/P&gt;
&lt;P&gt;good XyZ girl&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to find the term xyz whether upcase or lowcase or propcase and replace with some term (example: pqr) in the whole dataset. How can i do that ??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In simple words i would like to replace xyz with pqr.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help ?&lt;/P&gt;</description>
    <pubDate>Mon, 22 Nov 2021 10:48:26 GMT</pubDate>
    <dc:creator>r3570</dc:creator>
    <dc:date>2021-11-22T10:48:26Z</dc:date>
    <item>
      <title>Replacing Values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replacing-Values/m-p/781687#M249116</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a few values in a variable A of a dataset as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;A&lt;/P&gt;
&lt;P&gt;Superb xyz&lt;/P&gt;
&lt;P&gt;XYZ super&lt;/P&gt;
&lt;P&gt;good xyz&lt;/P&gt;
&lt;P&gt;good XyZ girl&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to find the term xyz whether upcase or lowcase or propcase and replace with some term (example: pqr) in the whole dataset. How can i do that ??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In simple words i would like to replace xyz with pqr.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help ?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 10:48:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replacing-Values/m-p/781687#M249116</guid>
      <dc:creator>r3570</dc:creator>
      <dc:date>2021-11-22T10:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replacing-Values/m-p/781691#M249118</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input A $ 1 - 20;
datalines;
Superb xyz    
XYZ super     
good xyz      
good XyZ girl 
;

data want;
   set have;
   A = tranwrd(upcase(A), 'XYZ', 'pqr');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Nov 2021 11:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replacing-Values/m-p/781691#M249118</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-11-22T11:03:35Z</dc:date>
    </item>
  </channel>
</rss>

