<?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 prepare error: ERROR:  Cannot convert 'INT4' to 'BOOL' in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-CLI-prepare-error-ERROR-Cannot-convert-INT4-to-BOOL/m-p/99742#M8874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is probably a server side error.&amp;nbsp; It could be that SAS is not generating proper code for SQL to transfer.&amp;nbsp; You need to turn on the SQL options that show the code actually generated and maybe post that.&amp;nbsp; It would also be helpful to know the SQL engine being used.&amp;nbsp; You might get the quickest solution by calling tech support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2012 16:59:46 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2012-05-02T16:59:46Z</dc:date>
    <item>
      <title>ERROR: CLI prepare error: ERROR:  Cannot convert 'INT4' to 'BOOL'</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-CLI-prepare-error-ERROR-Cannot-convert-INT4-to-BOOL/m-p/99741#M8873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having the following problem to which I found a simple solution, but am interested in understanding why it occurs in the first place.&amp;nbsp; Here is the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Pull in a table from a shared server.&lt;/P&gt;&lt;P&gt;2. Select all variables.&lt;/P&gt;&lt;P&gt;3. Filter on a Numeric variable (0,1)&lt;/P&gt;&lt;P&gt;4. Receive this error: &lt;STRONG&gt;ERROR: CLI prepare error: ERROR:&amp;nbsp; Cannot convert 'INT4' to 'BOOL'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;5. Solution: First run a query in which I&amp;nbsp; select all variables without filtering. Then run the original query and filter on the numeric variable. No error returned and the new table is properly filtered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does this occur?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 16:35:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-CLI-prepare-error-ERROR-Cannot-convert-INT4-to-BOOL/m-p/99741#M8873</guid>
      <dc:creator>james_whanger</dc:creator>
      <dc:date>2012-05-01T16:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: CLI prepare error: ERROR:  Cannot convert 'INT4' to 'BOOL'</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-CLI-prepare-error-ERROR-Cannot-convert-INT4-to-BOOL/m-p/99742#M8874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is probably a server side error.&amp;nbsp; It could be that SAS is not generating proper code for SQL to transfer.&amp;nbsp; You need to turn on the SQL options that show the code actually generated and maybe post that.&amp;nbsp; It would also be helpful to know the SQL engine being used.&amp;nbsp; You might get the quickest solution by calling tech support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 16:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-CLI-prepare-error-ERROR-Cannot-convert-INT4-to-BOOL/m-p/99742#M8874</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-05-02T16:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: CLI prepare error: ERROR:  Cannot convert 'INT4' to 'BOOL'</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-CLI-prepare-error-ERROR-Cannot-convert-INT4-to-BOOL/m-p/99743#M8875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You were right. It turns out it has to do with variable encoding on the server side. Pulling the data into project results in an automatric transformation that allows the subsququent query to work. Another solution is to use "NOT IS NULL" rather than "=1" when filtering directly from the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 15:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-CLI-prepare-error-ERROR-Cannot-convert-INT4-to-BOOL/m-p/99743#M8875</guid>
      <dc:creator>james_whanger</dc:creator>
      <dc:date>2012-05-07T15:30:19Z</dc:date>
    </item>
  </channel>
</rss>

