<?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: Tranlate didn't work in semicolon? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Tranlate-didn-t-work-in-semicolon/m-p/677865#M204536</link>
    <description>&lt;P&gt;If you want to change both / and ; to , you would use&lt;/P&gt;
&lt;PRE&gt;Name=strip(compbl(translate(Disease,',,','/;'))); &lt;/PRE&gt;
&lt;P&gt;The number of characters in the "to" list have to match the number in the "from" list. Otherwise you get "default" .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the documentation:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-refDictEntry"&gt;
&lt;DIV class="xis-details"&gt;
&lt;DIV id="p06a863ip0lmlhn1ss7p82g12ptc" class="xis-subTopic"&gt;
&lt;DIV id="n1gwq4iegl42zon1b2tr5r8ttmjm" class="xis-topicContent"&gt;
&lt;DIV id="n1252fqgao1138n1g29wd21gjap0" class="xis-paragraph"&gt;Under Windows, you do not have to specify a pair of arguments that consist of a &lt;SPAN class="xis-userSuppliedValue"&gt;to&lt;/SPAN&gt; argument and a &lt;SPAN class="xis-userSuppliedValue"&gt;from&lt;/SPAN&gt; argument. However, if you do not use pairs, you must supply a comma as a placeholder. If &lt;STRONG&gt;&lt;SPAN class="xis-userSuppliedValue"&gt;to&lt;/SPAN&gt; has fewer characters than &lt;SPAN class="xis-userSuppliedValue"&gt;from&lt;/SPAN&gt;, &lt;FONT style="background-color: #fcdec0;"&gt;TRANSLATE&lt;/FONT&gt; changes the extra &lt;SPAN class="xis-userSuppliedValue"&gt;from&lt;/SPAN&gt; characters to blanks&lt;/STRONG&gt;. If &lt;SPAN class="xis-userSuppliedValue"&gt;to&lt;/SPAN&gt; has more characters than &lt;SPAN class="xis-userSuppliedValue"&gt;from&lt;/SPAN&gt;, &lt;FONT style="background-color: #fcdec0;"&gt;TRANSLATE&lt;/FONT&gt; ignores the extra &lt;SPAN class="xis-userSuppliedValue"&gt;to&lt;/SPAN&gt; characters.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Wed, 19 Aug 2020 16:48:22 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-08-19T16:48:22Z</dc:date>
    <item>
      <title>Tranlate didn't work in semicolon?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tranlate-didn-t-work-in-semicolon/m-p/677850#M204529</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I ran a code to change the 'forwardslash' and 'semicolon' to 'comma.'&amp;nbsp;&amp;nbsp;&amp;nbsp; I found all of the columns are working, except one cell is '3 CRANIOTOMIES; HYPOSPADIAS.'&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Name=strip(compbl(translate(Disease,',','/;'))); &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;'semicolon' between ''3 CRANIOTOMIES' and&amp;nbsp;'HYPOSPADIAS' didn't change to 'comma', but 'space' instead.&amp;nbsp; I can't figure out why, and how to fix it.&amp;nbsp; Please help, thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 16:24:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tranlate-didn-t-work-in-semicolon/m-p/677850#M204529</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2020-08-19T16:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Tranlate didn't work in semicolon?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tranlate-didn-t-work-in-semicolon/m-p/677865#M204536</link>
      <description>&lt;P&gt;If you want to change both / and ; to , you would use&lt;/P&gt;
&lt;PRE&gt;Name=strip(compbl(translate(Disease,',,','/;'))); &lt;/PRE&gt;
&lt;P&gt;The number of characters in the "to" list have to match the number in the "from" list. Otherwise you get "default" .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the documentation:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV class="xis-refDictEntry"&gt;
&lt;DIV class="xis-details"&gt;
&lt;DIV id="p06a863ip0lmlhn1ss7p82g12ptc" class="xis-subTopic"&gt;
&lt;DIV id="n1gwq4iegl42zon1b2tr5r8ttmjm" class="xis-topicContent"&gt;
&lt;DIV id="n1252fqgao1138n1g29wd21gjap0" class="xis-paragraph"&gt;Under Windows, you do not have to specify a pair of arguments that consist of a &lt;SPAN class="xis-userSuppliedValue"&gt;to&lt;/SPAN&gt; argument and a &lt;SPAN class="xis-userSuppliedValue"&gt;from&lt;/SPAN&gt; argument. However, if you do not use pairs, you must supply a comma as a placeholder. If &lt;STRONG&gt;&lt;SPAN class="xis-userSuppliedValue"&gt;to&lt;/SPAN&gt; has fewer characters than &lt;SPAN class="xis-userSuppliedValue"&gt;from&lt;/SPAN&gt;, &lt;FONT style="background-color: #fcdec0;"&gt;TRANSLATE&lt;/FONT&gt; changes the extra &lt;SPAN class="xis-userSuppliedValue"&gt;from&lt;/SPAN&gt; characters to blanks&lt;/STRONG&gt;. If &lt;SPAN class="xis-userSuppliedValue"&gt;to&lt;/SPAN&gt; has more characters than &lt;SPAN class="xis-userSuppliedValue"&gt;from&lt;/SPAN&gt;, &lt;FONT style="background-color: #fcdec0;"&gt;TRANSLATE&lt;/FONT&gt; ignores the extra &lt;SPAN class="xis-userSuppliedValue"&gt;to&lt;/SPAN&gt; characters.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 19 Aug 2020 16:48:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tranlate-didn-t-work-in-semicolon/m-p/677865#M204536</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-08-19T16:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Tranlate didn't work in semicolon?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tranlate-didn-t-work-in-semicolon/m-p/678130#M204645</link>
      <description>Thank you!</description>
      <pubDate>Thu, 20 Aug 2020 14:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tranlate-didn-t-work-in-semicolon/m-p/678130#M204645</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2020-08-20T14:50:07Z</dc:date>
    </item>
  </channel>
</rss>

