<?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: ERROR: Connection is missing required option SERVER - Proc sql execute statment connection to ha in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/ERROR-Connection-is-missing-required-option-SERVER-Proc-sql/m-p/325335#M9461</link>
    <description>&lt;P&gt;The issue here is that you are trying to embed a SAS pass-through query within a SAS EXECUTE pass-through. Instead complete the Pass-through EXECUTE statement by putting the Hive select clause directly in the HiVE CREATE TABLE statement. Like so:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;connect to hadoop as sashdp(server=servername port=10000 schema=schemaname subprotocol=hive2);&lt;/P&gt;
&lt;P&gt;execute(create table test08_sas row format delimited fields terminated by '\001'&lt;/P&gt;
&lt;P&gt;stored as textfile as select *,date_sub('2016-08-31',99) as date_sub_value,&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;case when col1&amp;gt;="&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;2016&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;-&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;01&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;-&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;23&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; then &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"2016-08-30"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;else &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"2016-07-31"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; end as new_col1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;from table1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;limit &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;)&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; hadoop;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2017 16:40:47 GMT</pubDate>
    <dc:creator>DavidGhan</dc:creator>
    <dc:date>2017-01-17T16:40:47Z</dc:date>
    <item>
      <title>ERROR: Connection is missing required option SERVER - Proc sql execute statment connection to hadoop</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/ERROR-Connection-is-missing-required-option-SERVER-Proc-sql/m-p/323590#M9419</link>
      <description>&lt;P&gt;Getting below error message while creating table in hadoop via proc sql execute statement.Is there any server options or setting do i need to set to work with execute statement? Note:This code working with out execute statment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;ERROR: Connection is missing required option SERVER.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc&amp;nbsp;&amp;nbsp; sql;&lt;BR /&gt;connect to hadoop as sashdp(server=servername port=10000 schema=schemaname subprotocol=hive2);&lt;BR /&gt;execute(create table test08_sas row format delimited fields terminated by '\001'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stored as textfile as select * from connection to&amp;nbsp;sashdp ( select *,date_sub('2016-08-31',99) as date_sub_value,&lt;BR /&gt;case when col1&amp;gt;="2016-01-23 then "2016-08-30"&lt;BR /&gt;else "2016-07-31" end as new_col1&lt;BR /&gt;from&amp;nbsp; table1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;limit 10&lt;BR /&gt;))by hadoop;&lt;BR /&gt;quit;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 10 Jan 2017 11:56:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/ERROR-Connection-is-missing-required-option-SERVER-Proc-sql/m-p/323590#M9419</guid>
      <dc:creator>Koti</dc:creator>
      <dc:date>2017-01-10T11:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Connection is missing required option SERVER - Proc sql execute statment connection to ha</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/ERROR-Connection-is-missing-required-option-SERVER-Proc-sql/m-p/323594#M9420</link>
      <description>&lt;P&gt;Hmmm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there really a server/schema named servername/schemaname in your system?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because that's what you are providing for your connection&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;connect to hadoop as sashdp(server=&lt;STRONG&gt;servername&lt;/STRONG&gt; port=10000 schema=&lt;STRONG&gt;schemaname&lt;/STRONG&gt; subprotocol=hive2);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;Daniel Santos&amp;nbsp;@ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 12:10:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/ERROR-Connection-is-missing-required-option-SERVER-Proc-sql/m-p/323594#M9420</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2017-01-10T12:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Connection is missing required option SERVER - Proc sql execute statment connection to ha</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/ERROR-Connection-is-missing-required-option-SERVER-Proc-sql/m-p/325335#M9461</link>
      <description>&lt;P&gt;The issue here is that you are trying to embed a SAS pass-through query within a SAS EXECUTE pass-through. Instead complete the Pass-through EXECUTE statement by putting the Hive select clause directly in the HiVE CREATE TABLE statement. Like so:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;connect to hadoop as sashdp(server=servername port=10000 schema=schemaname subprotocol=hive2);&lt;/P&gt;
&lt;P&gt;execute(create table test08_sas row format delimited fields terminated by '\001'&lt;/P&gt;
&lt;P&gt;stored as textfile as select *,date_sub('2016-08-31',99) as date_sub_value,&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;case when col1&amp;gt;="&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;2016&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;-&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;01&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;-&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;23&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; then &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"2016-08-30"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;else &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"2016-07-31"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; end as new_col1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;from table1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;limit &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;)&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; hadoop;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 16:40:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/ERROR-Connection-is-missing-required-option-SERVER-Proc-sql/m-p/325335#M9461</guid>
      <dc:creator>DavidGhan</dc:creator>
      <dc:date>2017-01-17T16:40:47Z</dc:date>
    </item>
  </channel>
</rss>

