<?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: is there any code to replace the accented characters with non-accented characters in the variabl in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539733#M148764</link>
    <description>&lt;P&gt;If specific letters are the concern TRANSLATE will work:&lt;/P&gt;
&lt;PRE&gt;data example;
   x='abcdé';
   y=translate(x,'e','é');
run;&lt;/PRE&gt;
&lt;P&gt;If you don't know of all the likely culprits then BASECHAR may work but I'm not sure of an umlaut to 2-character as you desire.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2019 18:05:05 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-03-01T18:05:05Z</dc:date>
    <item>
      <title>is there any code to replace the accented characters with non-accented characters in the variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539658#M148736</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any code to replace the accented characters with non-accented characters in the variable? for example, u umlaut becomes 'ue', or '&lt;SPAN&gt;é' becomes 'e'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 15:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539658#M148736</guid>
      <dc:creator>Alexxxxxxx</dc:creator>
      <dc:date>2019-03-01T15:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: is there any code to replace the accented characters with non-accented characters in the variabl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539733#M148764</link>
      <description>&lt;P&gt;If specific letters are the concern TRANSLATE will work:&lt;/P&gt;
&lt;PRE&gt;data example;
   x='abcdé';
   y=translate(x,'e','é');
run;&lt;/PRE&gt;
&lt;P&gt;If you don't know of all the likely culprits then BASECHAR may work but I'm not sure of an umlaut to 2-character as you desire.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 18:05:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539733#M148764</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-03-01T18:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: is there any code to replace the accented characters with non-accented characters in the variabl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539743#M148768</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/262815"&gt;@Alexxxxxxx&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the 2-character replacements you can use &lt;A href="https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p0pgemqcslm9uen1tvr5gcrusgrw.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;TRANWRD&lt;/A&gt;. Unlike &lt;A href="https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p05ww22zp7lcg3n1bjk7v93tscyo.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;TRANSLATE&lt;/A&gt; it doesn't allow for multiple "from-to" pairs in the same function call, so you may want to use a loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
length c $20;
input c;
cards;
Ägypten
Österreich
äußerst
Übung
müßig
Römer
;

data want;
array f[7] $1 _temporary_ ('ä'  'ö'  'ü'  'ß'  'Ä'  'Ö'  'Ü' );
array t[7] $2 _temporary_ ('ae' 'oe' 'ue' 'ss' 'Ae' 'Oe' 'Ue');
set have;
do _n_=1 to dim(f);
  c=tranwrd(c, f[_n_], t[_n_]);
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Make sure that the length of the target variable is sufficient to accommodate the strings after the replacement(s).&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 18:57:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539743#M148768</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-03-01T18:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: is there any code to replace the accented characters with non-accented characters in the variabl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539753#M148774</link>
      <description>&lt;P&gt;Dear FreelanceReinhard,&lt;BR /&gt;&lt;BR /&gt;thanks for your helpful advice.&lt;BR /&gt;&lt;BR /&gt;Can I use this code to run 1-character replacement as well? for example 'à' becomes 'a'?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 19:28:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539753#M148774</guid>
      <dc:creator>Alexxxxxxx</dc:creator>
      <dc:date>2019-03-01T19:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: is there any code to replace the accented characters with non-accented characters in the variabl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539755#M148776</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/262815"&gt;@Alexxxxxxx&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Dear FreelanceReinhard,&lt;BR /&gt;&lt;BR /&gt;thanks for your helpful advice.&lt;BR /&gt;&lt;BR /&gt;Can I use this code to run 1-character replacement as well? for example 'à' becomes 'a'?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Of course, the target values in TRANWRD can be single characters as well, but if you add them to the existing $2 array, you'll insert an unwanted trailing blank into the target string. Therefore, I think the code using TRANSLATE (with multiple "from-to" pairs) will be shorter, e.g. (incomplete example)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;c=translate(c,'aceee','àçéêè');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Mar 2019 19:49:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539755#M148776</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-03-01T19:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: is there any code to replace the accented characters with non-accented characters in the variabl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539759#M148779</link>
      <description>&lt;P&gt;If you have access to NLS (don't know if it requires a separate licence anymore) you can use function BASECHAR. Try :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
input mot :$12.;
key = basechar(mot);
put key;
datalines;
Pierre
Étirer
Jean-Pierre
Ägypten
Österreich
äußerst
Übung
müßig
Römer
;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Mar 2019 20:09:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539759#M148779</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-03-01T20:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: is there any code to replace the accented characters with non-accented characters in the variabl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539781#M148794</link>
      <description>&lt;P&gt;So, can I use the following codes?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
array f[9] $1 _temporary_ ('Ä'  'Æ'  'Ö'  'Ü'  'ß'  'ä'  'æ'  'ö'  'ü');
array t[9] $2 _temporary_ ('AE' 'AE' 'OE' 'UE' 'SS' 'ae' 'ae' 'oe' 'ue');
set have;
do _n_=1 to dim(f);
  c=tranwrd(c, f[_n_], t[_n_]);
  c=translate(c,'AAAAACEEEEIIIIDNOOOOOUUUYaaaaaceeeeiiiionooooouuuyy','ÀÁÂÃÅÇÈÉÊËÌÍÎÏÐÑÒÓÔÕØÙÚÛÝàáâãåçèéêëìíîïðñòóôõøùúûýÿ');
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Mar 2019 22:09:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539781#M148794</guid>
      <dc:creator>Alexxxxxxx</dc:creator>
      <dc:date>2019-03-01T22:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: is there any code to replace the accented characters with non-accented characters in the variabl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539798#M148802</link>
      <description>&lt;P&gt;This would be a bit more efficient:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
c = tranwrd(c, 'ß', 'SS');
c = prxChange("s/([ÄÆÖÜ])/\1E/o", -1, c);
c = prxChange("s/([äæöü])/\1e/o", -1, c);
*c = basechar(c);
c = translate(c,
    'AAAAAAACEEEEIIIIDNOOOOOOUUUUYaaaaaaaceeeeiiiionoooooouuuuyy',
    'ÀÁÂÃÅÄÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕØÖÙÚÛÜÝàáâãåäæçèéêëìíîïðñòóôõøöùúûüýÿ');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Mar 2019 23:03:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539798#M148802</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-03-01T23:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: is there any code to replace the accented characters with non-accented characters in the variabl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539799#M148803</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/262815"&gt;@Alexxxxxxx&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;So, can I use the following codes?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
array f[9] $1 _temporary_ ('Ä'  'Æ'  'Ö'  'Ü'  'ß'  'ä'  'æ'  'ö'  'ü');
array t[9] $2 _temporary_ ('AE' 'AE' 'OE' 'UE' 'SS' 'ae' 'ae' 'oe' 'ue');
set have;
do _n_=1 to dim(f);
  c=tranwrd(c, f[_n_], t[_n_]);
  c=translate(c,'AAAAACEEEEIIIIDNOOOOOUUUYaaaaaceeeeiiiionooooouuuyy','ÀÁÂÃÅÇÈÉÊËÌÍÎÏÐÑÒÓÔÕØÙÚÛÝàáâãåçèéêëìíîïðñòóôõøùúûýÿ');
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;UL&gt;
&lt;LI&gt;The TRANSLATE call doesn't need to be repeated (nine times). It should occur outside of the DO loop.&lt;/LI&gt;
&lt;LI&gt;The &lt;EM&gt;capital&lt;/EM&gt; double S is not an ideal replacement for 'ß' except in words written in capitals (which rarely contain an 'ß').&lt;/LI&gt;
&lt;LI&gt;Similarly, "Aegypten", "Oesterreich" etc. would be preferable to "AEgypten", "OEsterreich" etc. -- &lt;EM&gt;if&lt;/EM&gt; the results are used for text output (like a report).&lt;/LI&gt;
&lt;LI&gt;Most of the 1-character replacements could be accomplished with the elegant BASECHAR function, which &lt;STRONG&gt;ballardw&lt;/STRONG&gt; and &lt;STRONG&gt;PGStats&lt;/STRONG&gt; have suggested. The few exceptions might be questionable in your code anyway. For example, why should '&lt;CODE class=" language-sas"&gt;ð&lt;/CODE&gt;' (a kind of 'd' I think) be replaced by 'o'?&lt;/LI&gt;
&lt;LI&gt;Of course, character variable C must be in dataset HAVE, with sufficient length.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Fri, 01 Mar 2019 23:04:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539799#M148803</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-03-01T23:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: is there any code to replace the accented characters with non-accented characters in the variabl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539816#M148815</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's a nice function. I believe NLS comes as part of Foundation SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at the result: It does the 1:1 translation but it doesn't really work for a German Umlaut. Correctly a ...&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token datalines"&gt;&lt;SPAN class="token data string"&gt;Ä&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;...should get converted into Ae&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2019 00:36:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539816#M148815</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-03-02T00:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: is there any code to replace the accented characters with non-accented characters in the variabl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539829#M148824</link>
      <description>&lt;P&gt;So, to summarize comments above, a reasonable code could be simplified to :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
c = tranwrd(c, 'ß', 'ss');
c = prxChange("s/([äæöüÄÆÖÜ])/\1e/o", -1, c);
c = basechar(c);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
c = basechar(prxChange("s/([äæöüÄÆÖÜ])/\1e/o", -1, tranwrd(c, 'ß', 'ss')));
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2019 03:46:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539829#M148824</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-03-02T03:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: is there any code to replace the accented characters with non-accented characters in the variabl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539851#M148838</link>
      <description>&lt;P&gt;Dear PG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I get the following file by running the codes,&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
length c $20;
input c;
cards;
Ägypten
Österreich
äußerst
Übung
müßig
Römer
Pierre
Étirer
Jean-Pierre
Ägypten
Österreich
äußerst
Übung
müßig
Römer
;
run;

data want;
set have;
c = tranwrd(c, 'ß', 'SS');
c = prxChange("s/([ÄÆÖÜ])/\1E/o", -1, c);
c = prxChange("s/([äæöü])/\1e/o", -1, c);
*c = basechar(c);
c = translate(c,'AAAAACEEEEIIIIDNOOOOOUUUYaaaaaceeeeiiiidnooooouuuyy','ÀÁÂÃÅÇÈÉÊËÌÍÎÏÐÑÒÓÔÕØÙÚÛÝàáâãåçèéêëìíîïðñòóôõøùúûýÿ');

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;The SAS System&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;c&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ÄEgypten&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ÖEsterreich&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;äeuSSerst&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ÜEbung&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;müeSSig&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Röemer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Pierre&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Etirer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jean-Pierre&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ÄEgypten&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ÖEsterreich&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;äeuSSerst&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ÜEbung&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;müeSSig&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Röemer&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sat, 02 Mar 2019 14:02:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539851#M148838</guid>
      <dc:creator>Alexxxxxxx</dc:creator>
      <dc:date>2019-03-02T14:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: is there any code to replace the accented characters with non-accented characters in the variabl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539859#M148844</link>
      <description>&lt;P&gt;This is probably the easiest solution to get working, although it requires that you create the list of mappings.&lt;/P&gt;
&lt;P&gt;Note make sure to make the temporary variables long enough to hold the Unicode representations of the strings. Many could take up to 4 bytes.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  input c $40.;
cards;
Ägypten
Österreich
äußerst
Übung
müßig
Römer
Pierre
Étirer
Jean-Pierre
Ägypten
Österreich
äußerst
Übung
müßig
Römer
;

data want;
  array f[8] $4 _temporary_ ('ä'  'ö'  'ü'  'ß'  'Ä'  'Ö'  'Ü'  'É');
  array t[8] $4 _temporary_ ('ae' 'oe' 'ue' 'ss' 'Ae' 'Oe' 'Ue' 'E');
  set have;
  d=c;
  do _n_=1 to dim(f);
    d=tranwrd(d, trim(f[_n_]), trim(t[_n_]));
  end;
run;

proc print;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 237px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27618iDD22A507B3F3E926/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You could also put your translation pairs into a dataset instead of placing it in the code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data translate;
  array f[8] $4 _temporary_ ('ä'  'ö'  'ü'  'ß'  'Ä'  'Ö'  'Ü'  'É');
  array t[8] $4 _temporary_ ('ae' 'oe' 'ue' 'ss' 'Ae' 'Oe' 'Ue' 'E');
  do _n_=1 to dim(f);
     from=f[_n_];
     to=t[_n_];
     output;
  end;
run;

data want;
  set have;
  d=c;
  do p=1 to nobs;
    set translate point=p nobs=nobs;
    d=tranwrd(d, trim(from), trim(to));
  end;
  drop from to;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 02 Mar 2019 17:54:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/is-there-any-code-to-replace-the-accented-characters-with-non/m-p/539859#M148844</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-03-02T17:54:50Z</dc:date>
    </item>
  </channel>
</rss>

