<?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: Expression using IN has components that are of different data types. in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/946964#M45379</link>
    <description>&lt;P&gt;When things are not working, we need to see the LOG (we need to see the entire log for this PROC SQL)&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2024 13:21:49 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2024-10-10T13:21:49Z</dc:date>
    <item>
      <title>ERROR: Expression using IN has components that are of different data types.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/946957#M45376</link>
      <description>&lt;P&gt;Running this code and coming up with the error above. Any suggestions on how to successfully run?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql ; create table max_line_apc as&lt;BR /&gt;select legacy_claim_id&lt;BR /&gt;,line_id&lt;BR /&gt;,apc_fee&lt;BR /&gt;,max_apc_fee&lt;BR /&gt;from OPSURG6&lt;BR /&gt;where apc_fee not in (0, .)&lt;BR /&gt;order by legacy_claim_id, apc_fee desc&lt;BR /&gt;;&lt;BR /&gt;quit ;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 13:17:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/946957#M45376</guid>
      <dc:creator>Jayreed34</dc:creator>
      <dc:date>2024-10-10T13:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expression using IN has components that are of different data types.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/946958#M45377</link>
      <description>&lt;P&gt;This indicates that when you are doing some sort of comparison, one of the variables is numeric and one of the variables is character/text, and so these cannot be compared. In your code, this is the comparison where this happens:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where apc_fee not in (0, .)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To fix this, you might want to change apc_fee to numeric (if possible), or try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where input(apc_fee,32.) not in (0,.)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Input function will turn a character variable into a numeric variable&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 13:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/946958#M45377</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-10-10T13:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expression using IN has components that are of different data types.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/946961#M45378</link>
      <description>&lt;P&gt;See screenshot:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 553px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101098i16F9E12DD7DEE570/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 13:20:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/946961#M45378</guid>
      <dc:creator>Jayreed34</dc:creator>
      <dc:date>2024-10-10T13:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expression using IN has components that are of different data types.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/946964#M45379</link>
      <description>&lt;P&gt;When things are not working, we need to see the LOG (we need to see the entire log for this PROC SQL)&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 13:21:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/946964#M45379</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-10-10T13:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expression using IN has components that are of different data types.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/946968#M45380</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 13:24:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/946968#M45380</guid>
      <dc:creator>Jayreed34</dc:creator>
      <dc:date>2024-10-10T13:24:43Z</dc:date>
    </item>
  </channel>
</rss>

