<?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: Regarding Hadoop Function in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Regarding-Hadoop-Function/m-p/449159#M29061</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/124432"&gt;@saikiran_nemani&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;CASE&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WHEN LEFT(je.product_id__c, 1) = 'C' THEN&lt;BR /&gt;RIGHT(je.product_id__c, Len(je.product_id__c) - 1)&lt;BR /&gt;ELSE je.product_id__c&lt;BR /&gt;END AS Product_ID&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please I want the code and what are the Functions used for Left,Right and Len in HADOOP&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a complete guess on my part as HADOOP can involve more than one DBMS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would start by trying standard SAS functions&lt;/P&gt;
&lt;P&gt;Instead of LEFT try SUBSTR(je.product_id__c,1,1) to get the first character, LENGTH instead of LEN and SUBSTR(je.product_id__c, Length(je.product_id__c) - 1).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SAS functions Left and Right justify variable values. If a variable contains "&amp;nbsp; text" (2 leading spaces) then Left(var) = "text" so that the non-blank&amp;nbsp;text starts in the first position. The Right function moves trailing blanks to the start: Right ("text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ") = "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text".&lt;/P&gt;
&lt;P&gt;So I suspect your code may have given you errors related to too many parameters for the Left and Right functions.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Mar 2018 21:23:16 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-03-27T21:23:16Z</dc:date>
    <item>
      <title>Regarding Hadoop Function</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Regarding-Hadoop-Function/m-p/448927#M29050</link>
      <description>&lt;P&gt;CASE&amp;nbsp;&lt;/P&gt;&lt;P&gt;WHEN LEFT(je.product_id__c, 1) = 'C' THEN&lt;BR /&gt;RIGHT(je.product_id__c, Len(je.product_id__c) - 1)&lt;BR /&gt;ELSE je.product_id__c&lt;BR /&gt;END AS Product_ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please I want the code and what are the Functions used for Left,Right and Len in HADOOP&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 11:11:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Regarding-Hadoop-Function/m-p/448927#M29050</guid>
      <dc:creator>saikiran_nemani</dc:creator>
      <dc:date>2018-03-27T11:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Hadoop Function</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Regarding-Hadoop-Function/m-p/449159#M29061</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/124432"&gt;@saikiran_nemani&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;CASE&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WHEN LEFT(je.product_id__c, 1) = 'C' THEN&lt;BR /&gt;RIGHT(je.product_id__c, Len(je.product_id__c) - 1)&lt;BR /&gt;ELSE je.product_id__c&lt;BR /&gt;END AS Product_ID&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please I want the code and what are the Functions used for Left,Right and Len in HADOOP&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a complete guess on my part as HADOOP can involve more than one DBMS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would start by trying standard SAS functions&lt;/P&gt;
&lt;P&gt;Instead of LEFT try SUBSTR(je.product_id__c,1,1) to get the first character, LENGTH instead of LEN and SUBSTR(je.product_id__c, Length(je.product_id__c) - 1).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SAS functions Left and Right justify variable values. If a variable contains "&amp;nbsp; text" (2 leading spaces) then Left(var) = "text" so that the non-blank&amp;nbsp;text starts in the first position. The Right function moves trailing blanks to the start: Right ("text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ") = "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text".&lt;/P&gt;
&lt;P&gt;So I suspect your code may have given you errors related to too many parameters for the Left and Right functions.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 21:23:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Regarding-Hadoop-Function/m-p/449159#M29061</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-27T21:23:16Z</dc:date>
    </item>
  </channel>
</rss>

