<?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 Error: Expression using not equals (^=) has components that are of different data types. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-Expression-using-not-equals-has-components-that-are-of/m-p/751867#M236756</link>
    <description>&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;This refers to the lines that I have case statements.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;blue blue&lt;/P&gt;</description>
    <pubDate>Sat, 03 Jul 2021 06:21:08 GMT</pubDate>
    <dc:creator>GN0001</dc:creator>
    <dc:date>2021-07-03T06:21:08Z</dc:date>
    <item>
      <title>Error: Expression using not equals (^=) has components that are of different data types.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-Expression-using-not-equals-has-components-that-are-of/m-p/751867#M236756</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;This refers to the lines that I have case statements.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;blue blue&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jul 2021 06:21:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-Expression-using-not-equals-has-components-that-are-of/m-p/751867#M236756</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2021-07-03T06:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Expression using not equals (^=) has components that are of different data types.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-Expression-using-not-equals-has-components-that-are-of/m-p/751868#M236757</link>
      <description>&lt;P&gt;You get such a message if you formulate a comparison between a column of type character and a column of type numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can only compare variables of the same data type (numeric with numeric or character with character).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run a Proc Contents over your table and the report will show you one of the columns as char and one as num.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to convert one of the columns to the other type: i.e. put(&amp;lt;numerical column&amp;gt;,32.) to create a string of digits to compare with another variable which contains similar string of digits.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you formulated a comparison variable=&amp;lt;some value&amp;gt; then make sure that if your variable is of type character the value is in quotes, and if the variable is of type numeric then not quotes around the value.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jul 2021 03:19:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-Expression-using-not-equals-has-components-that-are-of/m-p/751868#M236757</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-07-04T03:19:17Z</dc:date>
    </item>
  </channel>
</rss>

