<?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: SAS to vertica :CLI prepare error: {vertica}verticaDSII} (10) in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-to-vertica-CLI-prepare-error-vertica-verticaDSII-10/m-p/610301#M35244</link>
    <description>&lt;P&gt;We added vertica.ini file in sasenv_local file earlier .After removing this file it works fine.&lt;/P&gt;</description>
    <pubDate>Sun, 08 Dec 2019 17:37:57 GMT</pubDate>
    <dc:creator>chandu1</dc:creator>
    <dc:date>2019-12-08T17:37:57Z</dc:date>
    <item>
      <title>SAS to vertica :CLI prepare error: {vertica}verticaDSII} (10)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-to-vertica-CLI-prepare-error-vertica-verticaDSII-10/m-p/608912#M35206</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We ran the below code and got error .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname s odbc dsn=edw schema=retail_husky_public user=[USER NAME] password=[PASSWORD REMOVED]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* simple queries work */&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select &amp;nbsp;&amp;nbsp;&amp;nbsp; d.date_id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from s.date_dim&amp;nbsp; d&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* awkward / large queries fail */&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;sql&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;create table work.all_transactions as&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;distinct a.date_id, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a.store_no,&lt;/P&gt;&lt;P&gt;g.store_name,&lt;/P&gt;&lt;P&gt;b.card_no,&lt;/P&gt;&lt;P&gt;d.cust_type,&lt;/P&gt;&lt;P&gt;b.customer_id,&lt;/P&gt;&lt;P&gt;d.card_type,&lt;/P&gt;&lt;P&gt;c.first_name,&lt;/P&gt;&lt;P&gt;c.last_name,&lt;/P&gt;&lt;P&gt;c.email,&lt;/P&gt;&lt;P&gt;b.card_status,&lt;/P&gt;&lt;P&gt;f.account_status,&lt;/P&gt;&lt;P&gt;a.card_id,&lt;/P&gt;&lt;P&gt;a.pos_trans_no,&lt;/P&gt;&lt;P&gt;a.pos_till_no,&lt;/P&gt;&lt;P&gt;a.trans_time,&lt;/P&gt;&lt;P&gt;a.sales_trans_id,&lt;/P&gt;&lt;P&gt;case when x.tendername ='' then 'Other'&lt;/P&gt;&lt;P&gt;when x.tendername is null then 'Lotto Redemption'&lt;/P&gt;&lt;P&gt;else x.tendername end as tendername&lt;/P&gt;&lt;P&gt;,case when x.accountnumber ='' then 'N/A'&lt;/P&gt;&lt;P&gt;when x.accountnumber is null then 'Lotto Redemption'&lt;/P&gt;&lt;P&gt;else x.accountnumber end as accountnumber,&lt;/P&gt;&lt;P&gt;a.base_points_earned,&lt;/P&gt;&lt;P&gt;a.points_redeemed,&lt;/P&gt;&lt;P&gt;case when a.product_item_id in (&lt;STRONG&gt;56537&lt;/STRONG&gt;,&lt;STRONG&gt;30896&lt;/STRONG&gt;) then quantity_sold&lt;/P&gt;&lt;P&gt;else &lt;STRONG&gt;0&lt;/STRONG&gt; end as total_fuel_volume,&lt;/P&gt;&lt;P&gt;sales_value&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;s.sales_item_fact a,&lt;/P&gt;&lt;P&gt;s.card_dim b,&lt;/P&gt;&lt;P&gt;s.customer_dim c,&lt;/P&gt;&lt;P&gt;s.ma_cards d,&lt;/P&gt;&lt;P&gt;s.account_dim f,&lt;/P&gt;&lt;P&gt;s.store_location_dim g&lt;/P&gt;&lt;P&gt;,work.payments x&lt;/P&gt;&lt;P&gt;where a.card_id &amp;lt;&amp;gt; &lt;STRONG&gt;1&lt;/STRONG&gt; and&lt;/P&gt;&lt;P&gt;b.customer_id &amp;lt;&amp;gt; &lt;STRONG&gt;1&lt;/STRONG&gt; and&lt;/P&gt;&lt;P&gt;a.date_id between &amp;amp;startdate and &amp;amp;enddate&lt;/P&gt;&lt;P&gt;and a.card_id = b.card_id&lt;/P&gt;&lt;P&gt;and c.customer_id = b.customer_id&lt;/P&gt;&lt;P&gt;and d.card_no = b.card_no&lt;/P&gt;&lt;P&gt;and f.account_id = b.account_id&lt;/P&gt;&lt;P&gt;and a.store_no = g.store_no&lt;/P&gt;&lt;P&gt;and d.account_status &amp;lt;&amp;gt; 'Suspended'&lt;/P&gt;&lt;P&gt;and x.sales_trans_id = a.sales_trans_id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and a.product_item_id not in (&lt;STRONG&gt;10012&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;100212&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;order by b.card_no;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please look into the attachment for full details of error. Could you please your suggestions for to resolve this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CLI prepare error: {vertica}verticaDSII} (10) An error occurred during query preparation:&lt;BR /&gt;Multiple commands cannot be active on the same connection.Consider increasing ResultBuffersize or fetching&lt;BR /&gt;all results before initiating another command&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 03:29:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-to-vertica-CLI-prepare-error-vertica-verticaDSII-10/m-p/608912#M35206</guid>
      <dc:creator>chandu1</dc:creator>
      <dc:date>2019-12-03T03:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to vertica :CLI prepare error: {vertica}verticaDSII} (10)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-to-vertica-CLI-prepare-error-vertica-verticaDSII-10/m-p/608920#M35207</link>
      <description>&lt;P&gt;It looks like you are trying to join a temporary SAS dataset (work.payments) in a query to Vertica. This could be the cause of your problem. What happens if you remove that join and just have a pure Vertica query?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 03:48:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-to-vertica-CLI-prepare-error-vertica-verticaDSII-10/m-p/608920#M35207</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-12-03T03:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to vertica :CLI prepare error: {vertica}verticaDSII} (10)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-to-vertica-CLI-prepare-error-vertica-verticaDSII-10/m-p/608924#M35208</link>
      <description>&lt;P&gt;This code was run earlier without error.This is automated code .After changing configurations like odbc.ini file , this error occured . Is there any possibilty to set up buffersize in odbc connection ?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 04:22:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-to-vertica-CLI-prepare-error-vertica-verticaDSII-10/m-p/608924#M35208</guid>
      <dc:creator>chandu1</dc:creator>
      <dc:date>2019-12-03T04:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to vertica :CLI prepare error: {vertica}verticaDSII} (10)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-to-vertica-CLI-prepare-error-vertica-verticaDSII-10/m-p/609511#M35222</link>
      <description>&lt;P&gt;When you join to SAS data it is likely all of the database data is extracted out to SAS and then joined to the SAS data. This isn't efficient. A better approach is to load the SAS data into the database first, and do all of the joining in the database. When the query was working how long did it take?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 20:18:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-to-vertica-CLI-prepare-error-vertica-verticaDSII-10/m-p/609511#M35222</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-12-04T20:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to vertica :CLI prepare error: {vertica}verticaDSII} (10)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-to-vertica-CLI-prepare-error-vertica-verticaDSII-10/m-p/610301#M35244</link>
      <description>&lt;P&gt;We added vertica.ini file in sasenv_local file earlier .After removing this file it works fine.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2019 17:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-to-vertica-CLI-prepare-error-vertica-verticaDSII-10/m-p/610301#M35244</guid>
      <dc:creator>chandu1</dc:creator>
      <dc:date>2019-12-08T17:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS to vertica :CLI prepare error: {vertica}verticaDSII} (10)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-to-vertica-CLI-prepare-error-vertica-verticaDSII-10/m-p/610314#M35245</link>
      <description>&lt;P&gt;OK, good. Please mark post as answered then.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2019 19:02:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-to-vertica-CLI-prepare-error-vertica-verticaDSII-10/m-p/610314#M35245</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-12-08T19:02:32Z</dc:date>
    </item>
  </channel>
</rss>

