<?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: equivalent of tranwrd in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/equivalent-of-tranwrd/m-p/935989#M367942</link>
    <description>&lt;P&gt;It is usually not a good idea to insert non 7-bit ASCII character constants into your program.&amp;nbsp; Then the meaning of the code will change depending on the character encoding that is being used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://en.wikipedia.org/wiki/%C3%91#:~:text=%C3%91%2C%20or%20%C3%B1%20(Spanish%3A,lower%2Dcase%20%E2%9F%A8n%E2%9F%A9." target="_self"&gt;Spanish character "enye"&lt;/A&gt;&amp;nbsp;will be stored as different sets of bytes depending on the encoding you are using.&amp;nbsp; And for some single byte encodings it might not even exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To check what encoding SAS is using for your SAS session check the value of the ENCODING system option.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2024 04:40:40 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2024-07-17T04:40:40Z</dc:date>
    <item>
      <title>equivalent of tranwrd</title>
      <link>https://communities.sas.com/t5/SAS-Programming/equivalent-of-tranwrd/m-p/935978#M367937</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using&amp;nbsp;tranwrd in sas enterprice guide and works fine, but when i use it in the linux environment it does not work&lt;/P&gt;
&lt;P&gt;data ALTAS_DEF;&lt;BR /&gt;set ALTAS_DEF;&lt;BR /&gt;First_name = tranwrd(First_name, 'ñ', 'n');&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;i just want to change a letter for other one, do you know a work around about it ? or an equivalent function ?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 01:54:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/equivalent-of-tranwrd/m-p/935978#M367937</guid>
      <dc:creator>Jose7</dc:creator>
      <dc:date>2024-07-17T01:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: equivalent of tranwrd</title>
      <link>https://communities.sas.com/t5/SAS-Programming/equivalent-of-tranwrd/m-p/935981#M367939</link>
      <description>&lt;P&gt;If you only need to change a character ,NOT a word/string, try KTRANSLATE().&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data s;
 set sashelp.class;
First_name = ktranslate(name, 'n','ñ');

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Jul 2024 02:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/equivalent-of-tranwrd/m-p/935981#M367939</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-07-17T02:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: equivalent of tranwrd</title>
      <link>https://communities.sas.com/t5/SAS-Programming/equivalent-of-tranwrd/m-p/935984#M367940</link>
      <description>For all your accented letters:&lt;BR /&gt;data EXAMPLE ;&lt;BR /&gt;  %* Test string;&lt;BR /&gt;  STR1 = 'aaâäÊÉŒñbb';&lt;BR /&gt;  %* Single letter replacements;&lt;BR /&gt;  STR2 = ktranslate( STR1&lt;BR /&gt;                   , 'AAAAAACEEEEIIIIDNOOOOOOUUUUYaaaaaaceeeeiiiidnoooooouuuuyy'&lt;BR /&gt;                   , 'ÀÁÂÃÅÄÇÈÉÊËÌÍÎÏÐÑÒÓÔÕØÖÙÚÛÜÝàáâãåäçèéêëìíîïðñòóôõøöùúûüýÿ' );&lt;BR /&gt;  %* Double letter replacements;&lt;BR /&gt;  STR3 = tranwrd  ( STR2, 'Æ', 'AE' );&lt;BR /&gt;  STR3 = tranwrd  ( STR3, 'æ', 'ae' );&lt;BR /&gt;  STR3 = tranwrd  ( STR3, 'Œ', 'OE' );&lt;BR /&gt;  STR3 = tranwrd  ( STR3, 'œ', 'oe' );&lt;BR /&gt;  STR3 = tranwrd  ( STR3, 'ß', 'ss' );&lt;BR /&gt;run;&lt;BR /&gt;SAS does not support the&amp;amp;nbsp;regular expression syntax needed to do this in one go.</description>
      <pubDate>Sat, 20 Jul 2024 21:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/equivalent-of-tranwrd/m-p/935984#M367940</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2024-07-20T21:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: equivalent of tranwrd</title>
      <link>https://communities.sas.com/t5/SAS-Programming/equivalent-of-tranwrd/m-p/935985#M367941</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;I'm using tranwrd in sas enterprice guide and works fine, but when i use it in the linux environment it does not work&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This makes no sense. The SAS language is the very same on all platforms. I suspect you have another issue, like encoding.&lt;/P&gt;
&lt;P&gt;Run this to verify:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;=sysencoding;
&lt;/CODE&gt;&lt;/PRE&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>Wed, 17 Jul 2024 03:56:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/equivalent-of-tranwrd/m-p/935985#M367941</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2024-07-17T03:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: equivalent of tranwrd</title>
      <link>https://communities.sas.com/t5/SAS-Programming/equivalent-of-tranwrd/m-p/935989#M367942</link>
      <description>&lt;P&gt;It is usually not a good idea to insert non 7-bit ASCII character constants into your program.&amp;nbsp; Then the meaning of the code will change depending on the character encoding that is being used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://en.wikipedia.org/wiki/%C3%91#:~:text=%C3%91%2C%20or%20%C3%B1%20(Spanish%3A,lower%2Dcase%20%E2%9F%A8n%E2%9F%A9." target="_self"&gt;Spanish character "enye"&lt;/A&gt;&amp;nbsp;will be stored as different sets of bytes depending on the encoding you are using.&amp;nbsp; And for some single byte encodings it might not even exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To check what encoding SAS is using for your SAS session check the value of the ENCODING system option.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 04:40:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/equivalent-of-tranwrd/m-p/935989#M367942</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-07-17T04:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: equivalent of tranwrd</title>
      <link>https://communities.sas.com/t5/SAS-Programming/equivalent-of-tranwrd/m-p/936496#M368099</link>
      <description>Thks, it works&lt;BR /&gt;</description>
      <pubDate>Sat, 20 Jul 2024 17:39:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/equivalent-of-tranwrd/m-p/936496#M368099</guid>
      <dc:creator>Jose7</dc:creator>
      <dc:date>2024-07-20T17:39:17Z</dc:date>
    </item>
  </channel>
</rss>

