<?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 equals (=) has components that are of different data types in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Expression-using-equals-has-components-that-are-of/m-p/246738#M46212</link>
    <description>&lt;P&gt;If&amp;nbsp;&lt;EM&gt;ConstClass_0002&amp;nbsp;&lt;/EM&gt;is numeric the numbers should not be in quotes, quotes are for character variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WHERE (t1.SprCreditType_0001 = 'P' AND t1.ConstClass_0002 = 5)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 28 Jan 2016 20:18:44 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-01-28T20:18:44Z</dc:date>
    <item>
      <title>ERROR: Expression using equals (=) has components that are of different data types</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Expression-using-equals-has-components-that-are-of/m-p/246737#M46211</link>
      <description>&lt;P&gt;Could you please help with this error?, I checked my variables on both sides of the "=" signs and they seem to be match. However, I still get the error!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SprCreditType_0001 ---&amp;gt; character&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ConstClass_0002 ---&amp;gt; numeric&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;PROC SQL;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;WHERE (t1.SprCreditType_0001 = 'P' AND t1.ConstClass_0002 = '5') &lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;OR &lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;(t1.SprCreditType_0001 = 'N' &lt;/EM&gt;&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;AND t1.ConstClass_0002 = '5') &lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;OR&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;(t1.SprCreditType_0001 = 'P' &lt;/EM&gt;&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;AND t1.ConstClass_0002 = '6') &lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;OR&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;(t1.SprCreditType_0001 = 'N' &lt;/EM&gt;&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;AND t1.ConstClass_0002 = '6') ;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;EM&gt;QUIT;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 20:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Expression-using-equals-has-components-that-are-of/m-p/246737#M46211</guid>
      <dc:creator>almmotamedi</dc:creator>
      <dc:date>2016-01-28T20:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expression using equals (=) has components that are of different data types</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Expression-using-equals-has-components-that-are-of/m-p/246738#M46212</link>
      <description>&lt;P&gt;If&amp;nbsp;&lt;EM&gt;ConstClass_0002&amp;nbsp;&lt;/EM&gt;is numeric the numbers should not be in quotes, quotes are for character variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WHERE (t1.SprCreditType_0001 = 'P' AND t1.ConstClass_0002 = 5)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jan 2016 20:18:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Expression-using-equals-has-components-that-are-of/m-p/246738#M46212</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-28T20:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expression using equals (=) has components that are of different data types</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Expression-using-equals-has-components-that-are-of/m-p/246741#M46214</link>
      <description>&lt;P&gt;It worked! Thank you so mcuh&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 20:31:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Expression-using-equals-has-components-that-are-of/m-p/246741#M46214</guid>
      <dc:creator>almmotamedi</dc:creator>
      <dc:date>2016-01-28T20:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expression using equals (=) has components that are of different data types</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Expression-using-equals-has-components-that-are-of/m-p/246761#M46219</link>
      <description>Also consider"&lt;BR /&gt;WHERE (t1.SprCreditType_0001 in ( 'P' ,'N') AND t1.ConstClass_0002 in (5, 6) )</description>
      <pubDate>Thu, 28 Jan 2016 21:44:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Expression-using-equals-has-components-that-are-of/m-p/246761#M46219</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-01-28T21:44:28Z</dc:date>
    </item>
  </channel>
</rss>

