<?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: How can I do below data by using only translate function? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-do-below-data-by-using-only-translate-function/m-p/590407#M15033</link>
    <description>yes, we have lot of ways to do this. But in interview asked me how can we do by only this function.</description>
    <pubDate>Fri, 20 Sep 2019 13:59:03 GMT</pubDate>
    <dc:creator>rajeshalwayswel</dc:creator>
    <dc:date>2019-09-20T13:59:03Z</dc:date>
    <item>
      <title>How can I do below data by using only translate function?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-do-below-data-by-using-only-translate-function/m-p/590395#M15031</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
var='this is sas';
run;

Required output:

thas is sas 

by using only translate function&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Sep 2019 13:38:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-do-below-data-by-using-only-translate-function/m-p/590395#M15031</guid>
      <dc:creator>rajeshalwayswel</dc:creator>
      <dc:date>2019-09-20T13:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I do below data by using only translate function?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-do-below-data-by-using-only-translate-function/m-p/590399#M15032</link>
      <description>&lt;P&gt;You mean we can't use SCAN or SUBSTR or TRANWRD?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, it is impossible to generalize a single example so we can write meaningful code. Can you give us a more meaningful and realistic example?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is non-meaningful code, I didn't even need to use TRANSLATE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    if var='this is sas' then var='thas is sas';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 13:48:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-do-below-data-by-using-only-translate-function/m-p/590399#M15032</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-20T13:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I do below data by using only translate function?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-do-below-data-by-using-only-translate-function/m-p/590407#M15033</link>
      <description>yes, we have lot of ways to do this. But in interview asked me how can we do by only this function.</description>
      <pubDate>Fri, 20 Sep 2019 13:59:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-do-below-data-by-using-only-translate-function/m-p/590407#M15033</guid>
      <dc:creator>rajeshalwayswel</dc:creator>
      <dc:date>2019-09-20T13:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I do below data by using only translate function?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-do-below-data-by-using-only-translate-function/m-p/590421#M15036</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/174522"&gt;@rajeshalwayswel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;yes, we have lot of ways to do this. But in interview asked me how can we do by only this function.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I suspect that if the interviewer was that specific and knowledgeable, or had a prepared list of answers, may have been looking for "Can't do that with Translate, you may have meant Tranwrd" since translate replaces all occurrences of specified characters with the specified target.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 14:40:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-do-below-data-by-using-only-translate-function/m-p/590421#M15036</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-09-20T14:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I do below data by using only translate function?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-can-I-do-below-data-by-using-only-translate-function/m-p/590441#M15046</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/174522"&gt;@rajeshalwayswel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;yes, we have lot of ways to do this. But in interview asked me how can we do by only this function.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I suspect that if the interviewer was that specific and knowledgeable, or had a prepared list of answers, may have been looking for "Can't do that with Translate, you may have meant Tranwrd" since translate replaces all occurrences of specified characters with the specified target.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If your suspicion is correct, I think this is a terrible interview question,and unfortunate for the interviewee, but that's my opinion. It could also be that whoever prepared the question him(her)self had confused TRANSLATE and TRANWRD, which would be doubly unfortunate for the interviewee.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 15:23:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-can-I-do-below-data-by-using-only-translate-function/m-p/590441#M15046</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-20T15:23:17Z</dc:date>
    </item>
  </channel>
</rss>

