<?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: CLI error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/CLI-error/m-p/498713#M132604</link>
    <description>&lt;P&gt;I think the problem is that you renamed the identifier to &lt;SPAN&gt;inboxforcommunicationid in your subquery named "d", meaning that you should refer to it as d.inboxforcommunicationid, not d.identifier in the join clause.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Sep 2018 12:57:44 GMT</pubDate>
    <dc:creator>s_lassen</dc:creator>
    <dc:date>2018-09-25T12:57:44Z</dc:date>
    <item>
      <title>CLI error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CLI-error/m-p/498712#M132603</link>
      <description />
      <pubDate>Wed, 26 Sep 2018 12:42:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CLI-error/m-p/498712#M132603</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-09-26T12:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: CLI error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CLI-error/m-p/498713#M132604</link>
      <description>&lt;P&gt;I think the problem is that you renamed the identifier to &lt;SPAN&gt;inboxforcommunicationid in your subquery named "d", meaning that you should refer to it as d.inboxforcommunicationid, not d.identifier in the join clause.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 12:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CLI-error/m-p/498713#M132604</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2018-09-25T12:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: CLI error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CLI-error/m-p/498716#M132607</link>
      <description>&lt;P&gt;From the log:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;ERROR: CLI &lt;SPAN class="token keyword"&gt;describe&lt;/SPAN&gt; error: &lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;IBM&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;CLI Driver&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt;DB2&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;LINUXX8554&lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt; SQL0206N  &lt;SPAN class="token string"&gt;"D.IDENTIFIER"&lt;/SPAN&gt; is &lt;SPAN class="token operator"&gt;not&lt;/SPAN&gt; valid &lt;SPAN class="token operator"&gt;in&lt;/SPAN&gt; the context &lt;SPAN class="token statement"&gt;where&lt;/SPAN&gt; it is used&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt; 
        SQLSTATE&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;42703&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For your code:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;select&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;distinct&lt;/SPAN&gt; identifier as inboxforcommunicationid&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;name as afdeling &lt;SPAN class="token keyword"&gt;from&lt;/SPAN&gt; qis&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;rpinboxforcommunication &lt;SPAN class="token statement"&gt;where&lt;/SPAN&gt; identifier
&lt;SPAN class="token number"&gt;55&lt;/SPAN&gt;       &lt;SPAN class="token operator"&gt;!&lt;/SPAN&gt;  &lt;SPAN class="token operator"&gt;in&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'00000000001'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'10000000000'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'10000000001'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'10000000003'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; as d
&lt;SPAN class="token number"&gt;56&lt;/SPAN&gt;         				on         a&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;inboxforcommunicationID&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;d&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;identifier&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Put the two together and you will see that in the select block, you take a variable called identifier as new variable inboxforcommunicationid.&amp;nbsp; But later on you use d.identifier, which is not in the select clause.&amp;nbsp; Thus d.identifier is not valid where you have used it.&lt;/P&gt;
&lt;P&gt;The log tells you problems in your code.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 13:02:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CLI-error/m-p/498716#M132607</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-25T13:02:40Z</dc:date>
    </item>
  </channel>
</rss>

