<?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: SAS DATA Standardization in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DATA-Standardization/m-p/329702#M9680</link>
    <description>&lt;P&gt;Without seeing the rest of your data, it's hard to give a hard and fast answer. This will work for the example you've given, however:&lt;/P&gt;
&lt;PRE&gt;data _null_;&lt;BR /&gt;length address $ 50;&lt;BR /&gt;address = 'POST 1234 ST NO 50.';&lt;BR /&gt;address = tranwrd(address, ' ST ', ' STREET ');&lt;BR /&gt;put address=;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&lt;EM&gt;tranwrd&lt;/EM&gt; changes character strings, whereas&amp;nbsp;&lt;EM&gt;translate&lt;/EM&gt; changes single characters. Note that I have prefixed and suffixed the two strings with spaces, because&amp;nbsp;&lt;EM&gt;POST&lt;/EM&gt; would have been changed as well. However you may strike problems with&amp;nbsp;&lt;EM&gt;ST.&lt;/EM&gt;, where a full-stop is after the string - you may have to put in two&amp;nbsp;&lt;EM&gt;tranwrd&lt;/EM&gt; calls to cope with this. I have a very large and complex macro which does exactly this, but it may be more than you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the parameter order for&amp;nbsp;&lt;EM&gt;tranwrd&lt;/EM&gt; is different to&amp;nbsp;&lt;EM&gt;translate&lt;/EM&gt; (which only changes single characters): the second parameter is what you want to change, the third is what you want it to change to.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Feb 2017 07:01:26 GMT</pubDate>
    <dc:creator>LaurieF</dc:creator>
    <dc:date>2017-02-03T07:01:26Z</dc:date>
    <item>
      <title>SAS DATA Standardization</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DATA-Standardization/m-p/329700#M9678</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a string like POST 1234 ST NO 50.&lt;/P&gt;
&lt;P&gt;I need the string to be standardized as POST 1234 STREET NO 50.In the strings i need to change only ST as STREET.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many Thanks In Adavnce For Your Response,&lt;/P&gt;
&lt;P&gt;Sandeep&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 06:47:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DATA-Standardization/m-p/329700#M9678</guid>
      <dc:creator>sandeep_reddy</dc:creator>
      <dc:date>2017-02-03T06:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DATA Standardization</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DATA-Standardization/m-p/329701#M9679</link>
      <description>What sw so you have at hand?&lt;BR /&gt;What have you tried so far?</description>
      <pubDate>Fri, 03 Feb 2017 06:57:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DATA-Standardization/m-p/329701#M9679</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-02-03T06:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DATA Standardization</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DATA-Standardization/m-p/329702#M9680</link>
      <description>&lt;P&gt;Without seeing the rest of your data, it's hard to give a hard and fast answer. This will work for the example you've given, however:&lt;/P&gt;
&lt;PRE&gt;data _null_;&lt;BR /&gt;length address $ 50;&lt;BR /&gt;address = 'POST 1234 ST NO 50.';&lt;BR /&gt;address = tranwrd(address, ' ST ', ' STREET ');&lt;BR /&gt;put address=;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&lt;EM&gt;tranwrd&lt;/EM&gt; changes character strings, whereas&amp;nbsp;&lt;EM&gt;translate&lt;/EM&gt; changes single characters. Note that I have prefixed and suffixed the two strings with spaces, because&amp;nbsp;&lt;EM&gt;POST&lt;/EM&gt; would have been changed as well. However you may strike problems with&amp;nbsp;&lt;EM&gt;ST.&lt;/EM&gt;, where a full-stop is after the string - you may have to put in two&amp;nbsp;&lt;EM&gt;tranwrd&lt;/EM&gt; calls to cope with this. I have a very large and complex macro which does exactly this, but it may be more than you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the parameter order for&amp;nbsp;&lt;EM&gt;tranwrd&lt;/EM&gt; is different to&amp;nbsp;&lt;EM&gt;translate&lt;/EM&gt; (which only changes single characters): the second parameter is what you want to change, the third is what you want it to change to.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 07:01:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DATA-Standardization/m-p/329702#M9680</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2017-02-03T07:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DATA Standardization</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DATA-Standardization/m-p/329734#M9681</link>
      <description>&lt;P&gt;If I was "standardising" that data, I would want to create variables specific for each data element. &amp;nbsp;E.g.&lt;/P&gt;
&lt;P&gt;POST_CODE &amp;nbsp; &amp;nbsp; &amp;nbsp; STREET_NUMBER&lt;/P&gt;
&lt;P&gt;1234 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rather than replacing some text, and then having to analyze the text each time I wanted to use it. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 09:38:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DATA-Standardization/m-p/329734#M9681</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-02-03T09:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DATA Standardization</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/SAS-DATA-Standardization/m-p/329737#M9682</link>
      <description>&lt;P&gt;HI Linush,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using SAS Dataflux and standardization node in the data job. When i am trying to replace ST as STREET ,the words like POST is changing as POSTREET.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sandeep&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2017 09:46:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/SAS-DATA-Standardization/m-p/329737#M9682</guid>
      <dc:creator>sandeep_reddy</dc:creator>
      <dc:date>2017-02-03T09:46:29Z</dc:date>
    </item>
  </channel>
</rss>

