<?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 equals (=) has components that are of different data types. in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Expression-using-equals-has-components-that-are-of/m-p/834772#M35900</link>
    <description>&lt;P&gt;I am very new to SAS as I am learning it currently for a college course. I am getting this error, "ERROR: Expression using equals (=) has components that are of different data types.", with the following code;&lt;/P&gt;&lt;P&gt;libname mk "/home/u62148011/sasuser.v94";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc contents data= mk.aha;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE WORK.query AS&lt;BR /&gt;&amp;nbsp; &amp;nbsp;SELECT PHAGMISS&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;FROM mk.aha&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;ORDER BY PHAGMISS= "5";&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe the error is occurring with the ORDER BY statement. Any advice or help you can give would be great.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2022 23:44:15 GMT</pubDate>
    <dc:creator>mokleber</dc:creator>
    <dc:date>2022-09-22T23:44:15Z</dc:date>
    <item>
      <title>ERROR: Expression using equals (=) has components that are of different data types.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Expression-using-equals-has-components-that-are-of/m-p/834772#M35900</link>
      <description>&lt;P&gt;I am very new to SAS as I am learning it currently for a college course. I am getting this error, "ERROR: Expression using equals (=) has components that are of different data types.", with the following code;&lt;/P&gt;&lt;P&gt;libname mk "/home/u62148011/sasuser.v94";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc contents data= mk.aha;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE WORK.query AS&lt;BR /&gt;&amp;nbsp; &amp;nbsp;SELECT PHAGMISS&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;FROM mk.aha&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;ORDER BY PHAGMISS= "5";&lt;BR /&gt;RUN;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe the error is occurring with the ORDER BY statement. Any advice or help you can give would be great.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 23:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Expression-using-equals-has-components-that-are-of/m-p/834772#M35900</guid>
      <dc:creator>mokleber</dc:creator>
      <dc:date>2022-09-22T23:44:15Z</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/New-SAS-User/ERROR-Expression-using-equals-has-components-that-are-of/m-p/834773#M35901</link>
      <description>&lt;P&gt;It would appear that your variable PHAGMISS is numeric.&lt;/P&gt;
&lt;P&gt;Look at your Proc Contents output. Does it show NUM as Type for that variable? Num means numeric in Proc Contents type values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why do you have an = on the Order by anyway? Do you want the records where Phagmiss=5 to be at the end?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 23:56:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Expression-using-equals-has-components-that-are-of/m-p/834773#M35901</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-09-22T23:56:49Z</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/New-SAS-User/ERROR-Expression-using-equals-has-components-that-are-of/m-p/834787#M35906</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ORDER BY PHAGMISS= "5";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;PHAGMISS seems to be numeric.&lt;/P&gt;
&lt;P&gt;Your ORDER BY value is the result of a comparison, so the ORDER BY clause will put all the 5's at the end of the resulting dataset. Is this what you want?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 02:53:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Expression-using-equals-has-components-that-are-of/m-p/834787#M35906</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-09-23T02:53:35Z</dc:date>
    </item>
  </channel>
</rss>

