<?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: &amp;quot;Execute&amp;quot; in Cloudera in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/quot-Execute-quot-in-Cloudera/m-p/479859#M286559</link>
    <description>Not sure I'm following. The length of a schema in an external database doesn't have to follow SAS naming conventions. &lt;BR /&gt;Anything that goes on inside an execute block is SAS unaware of.&lt;BR /&gt;If you wish to access that schema via a libref, you just give it a SAS libref name if max 8 chars, the referred schema can be much longer.</description>
    <pubDate>Fri, 20 Jul 2018 12:48:05 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2018-07-20T12:48:05Z</dc:date>
    <item>
      <title>"Execute" in Cloudera</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-Execute-quot-in-Cloudera/m-p/479833#M286558</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to connect to a Cloudera cluster and run a query there by using an execute statement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname sas2 hadoop&lt;BR /&gt;uri='.........'&lt;BR /&gt;schema="data_analyst"&lt;BR /&gt;SERVER="1&lt;SPAN&gt;***.**.**.***&lt;/SPAN&gt;"&lt;BR /&gt;TRANSCODE_FAIL=SILENT&lt;BR /&gt;DBMAX_TEXT=50;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;libname vantage hadoop&lt;BR /&gt;uri='.........'&lt;BR /&gt;schema="vantage"&lt;BR /&gt;SERVER="&lt;SPAN&gt;***.**.**.***&lt;/SPAN&gt;"&lt;BR /&gt;TRANSCODE_FAIL=SILENT&lt;BR /&gt;DBMAX_TEXT=50;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to HADOOP&lt;BR /&gt;(&lt;BR /&gt;SERVER="***.**.**.***"&lt;BR /&gt;uri='......'&lt;BR /&gt;);&lt;BR /&gt;execute(&lt;BR /&gt;create table sas.T0 as&lt;BR /&gt;SELECT&lt;BR /&gt;A.var1, A.var2,&lt;BR /&gt;B.var3,B.var4,&lt;BR /&gt;FROM&lt;BR /&gt;sas2.data_set_1 &amp;nbsp;as A left join vantage.data_set_2 as B on A.column1=B.column2) by hadoop;&lt;BR /&gt;disconnect from hadoop;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that &amp;nbsp;(since I want to "execute" in Cloudera) &amp;nbsp;I cannot use the name sas2 as a Libref for the first schema. I must give it the name "data_analyst" which is not a valid SAS Libname... &amp;nbsp;. &amp;nbsp; So I cannot access/use the dataset sas2.data_set_1 in the query above. Any solution other than renaming the Cloudera schema "data_analyst" to &amp;nbsp;something less than 9 characters ?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 08:25:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-Execute-quot-in-Cloudera/m-p/479833#M286558</guid>
      <dc:creator>VanDalucas</dc:creator>
      <dc:date>2018-07-20T08:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: "Execute" in Cloudera</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-Execute-quot-in-Cloudera/m-p/479859#M286559</link>
      <description>Not sure I'm following. The length of a schema in an external database doesn't have to follow SAS naming conventions. &lt;BR /&gt;Anything that goes on inside an execute block is SAS unaware of.&lt;BR /&gt;If you wish to access that schema via a libref, you just give it a SAS libref name if max 8 chars, the referred schema can be much longer.</description>
      <pubDate>Fri, 20 Jul 2018 12:48:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-Execute-quot-in-Cloudera/m-p/479859#M286559</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-07-20T12:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: "Execute" in Cloudera</title>
      <link>https://communities.sas.com/t5/SAS-Programming/quot-Execute-quot-in-Cloudera/m-p/479902#M286560</link>
      <description>&lt;P&gt;Hi LinusH and thank you for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I let "sas2" as the name of the "data_analyst" schema found in Cloudera, then upon using a dataset of that schema (sas2.dataset1) in an execute statement the following error is produced: "[Error 10072]: Database does not exist: sas2" or "["Error 10001]: Dataset does not exist: dataset1"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But these problems disappear when the name of the libref is the same as the name of the schema..&lt;/P&gt;&lt;P&gt;thanks again&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 15:04:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/quot-Execute-quot-in-Cloudera/m-p/479902#M286560</guid>
      <dc:creator>VanDalucas</dc:creator>
      <dc:date>2018-07-20T15:04:06Z</dc:date>
    </item>
  </channel>
</rss>

