<?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: CLI open cursor error: Could not receive the response, communication down ?? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-CLI-open-cursor-error-Could-not-receive-the-response/m-p/376125#M90235</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/151241"&gt;@AJDELACRUZ0220&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try adding the&amp;nbsp;&lt;SPAN&gt;conopts= option in your connection string.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It would look like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;connect to odbc as hindsight (datasrc='PostgreSQL30'&amp;nbsp;user=myuser password="mypassword"&amp;nbsp;dbmax_text=12000&amp;nbsp;conopts="UseDeclareFetch=1;Fetch=1000;UseServerSidePrepare=1;")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If this doesn't work simplify the CONOPTS= option, like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;connect to odbc as hindsight (datasrc='PostgreSQL30' user=myuser password="mypassword" dbmax_text=12000 conopts="UseDeclareFetch=1;")
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully one of these will help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best wishes,&lt;BR /&gt;Jeff&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2017 18:15:37 GMT</pubDate>
    <dc:creator>JBailey</dc:creator>
    <dc:date>2017-07-14T18:15:37Z</dc:date>
    <item>
      <title>ERROR: CLI open cursor error: Could not receive the response, communication down ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-CLI-open-cursor-error-Could-not-receive-the-response/m-p/373295#M89297</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to extract big amount of data and I am getting this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: CLI open cursor error: Could not receive the response, communication down ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any option that I need to add on my SQL pass through?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;connect to odbc as hindsight (datasrc=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'PostgreSQL30'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; user=xxxxxxx password=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"xxxxxx"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; dbmax_text=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;12000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;create table&amp;nbsp;temp as&lt;/P&gt;&lt;P&gt;select * from connection to hindsight&lt;/P&gt;&lt;P&gt;(SELECT fact_event.fact_id,fact_event.region_cd,fact_event.transaction_dte,fact_event.roll_num,&lt;/P&gt;&lt;P&gt;fact_event.property_cd,fact_event.property_desc,fact_event.cty_mun,value_dim.value_rounded, comp_dim.value_component_id,&lt;/P&gt;&lt;P&gt;comp_dim.transaction_dte, comp_dim.unadjusted, comp_dim.value, comp_dim.valuation_type, comp_dim.priority,&lt;/P&gt;&lt;P&gt;comp_dim.property_adjusted, comp_dim.component_adjusted, comp_dim.component_id, comp_dim.building_id_number,&lt;/P&gt;&lt;P&gt;comp_dim.variables, comp_dim.active&lt;/P&gt;&lt;P&gt;FROM hindsight_3.fact_event fact_event&lt;/P&gt;&lt;P&gt;INNER JOIN&lt;/P&gt;&lt;P&gt;(SELECT roll_num, max(transaction_dte) as max_transaction_dte&lt;/P&gt;&lt;P&gt;FROM hindsight_3.fact_event fact_event&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;WHERE fact_event.event_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'CMV'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; and fact_event.status_cd=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'A'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;GROUP BY roll_num) transaction_dte on fact_event.roll_num=transaction_dte.roll_num and fact_event.transaction_dte=transaction_dte.max_transaction_dte&lt;/P&gt;&lt;P&gt;LEFT JOIN hindsight_3.property_dim property_dim ON fact_event.fact_id = property_dim.fact_id&lt;/P&gt;&lt;P&gt;LEFT JOIN hindsight_3.value_component_dim comp_dim ON fact_event.fact_id = comp_dim.fact_id&lt;/P&gt;&lt;P&gt;LEFT JOIN hindsight_3.value_dim value_dim ON fact_event.fact_id = value_dim.fact_id&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;WHERE ((substring(fact_event.region_cd,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&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;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;) = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'0'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; and substring(fact_event.region_cd,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;2&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;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;) = '09') or fact_event.region_cd = '09')&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and fact_event.event_type=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'CMV'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; and fact_event.status_cd=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'A'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; and property_dim.status_cd=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'A'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ORDER BY fact_event.roll_num);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ave&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 14:16:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-CLI-open-cursor-error-Could-not-receive-the-response/m-p/373295#M89297</guid>
      <dc:creator>AJDELACRUZ0220</dc:creator>
      <dc:date>2017-07-05T14:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: CLI open cursor error: Could not receive the response, communication down ??</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-CLI-open-cursor-error-Could-not-receive-the-response/m-p/376125#M90235</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/151241"&gt;@AJDELACRUZ0220&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try adding the&amp;nbsp;&lt;SPAN&gt;conopts= option in your connection string.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It would look like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;connect to odbc as hindsight (datasrc='PostgreSQL30'&amp;nbsp;user=myuser password="mypassword"&amp;nbsp;dbmax_text=12000&amp;nbsp;conopts="UseDeclareFetch=1;Fetch=1000;UseServerSidePrepare=1;")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If this doesn't work simplify the CONOPTS= option, like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;connect to odbc as hindsight (datasrc='PostgreSQL30' user=myuser password="mypassword" dbmax_text=12000 conopts="UseDeclareFetch=1;")
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully one of these will help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best wishes,&lt;BR /&gt;Jeff&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 18:15:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-CLI-open-cursor-error-Could-not-receive-the-response/m-p/376125#M90235</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2017-07-14T18:15:37Z</dc:date>
    </item>
  </channel>
</rss>

