<?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 Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/57974#M16181</link>
    <description>&amp;gt; Anyone know why i am getting this error, level_7_id&lt;BR /&gt;
&amp;gt; are both of same data type?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; 44   PROC SQL;&lt;BR /&gt;
&amp;gt; 45   CREATE table Calls_Handled_Temp AS&lt;BR /&gt;
&amp;gt; 46   SELECT A.SiteID,A.Indicator_OutSource,&lt;BR /&gt;
&amp;gt; B.ReportTime,B.Level_7_ID, B.agentcallshandled&lt;BR /&gt;
&amp;gt; 47   FROM  level7 A FULL JOIN&lt;BR /&gt;
&amp;gt; jennifer.tbl_vccartsceintrvl B&lt;BR /&gt;
&amp;gt; 48   ON (A.Level_7_ID = B.Level_7_ID)&lt;BR /&gt;
&amp;gt; 49   WHERE&lt;BR /&gt;
&amp;gt; 50   ReportTime &amp;gt;= &amp;amp;MTDfromdate and ReportTime &amp;lt;=&lt;BR /&gt;
&amp;gt; &amp;amp;MTDTodate&lt;BR /&gt;
&amp;gt; 51   order by ReportTime asc;&lt;BR /&gt;
&amp;gt; ERROR: Expression using IN has components that are of&lt;BR /&gt;
&amp;gt; different data types.&lt;BR /&gt;
&amp;gt; NOTE: The IN referred to may have been transformed&lt;BR /&gt;
&amp;gt; from an OR to an IN at some point during PROC&lt;BR /&gt;
&amp;gt;       SQL where clause optimization.&lt;BR /&gt;
&amp;gt;    QUIT;&lt;BR /&gt;
&amp;gt; red&lt;BR /&gt;
&lt;BR /&gt;
unfortunately a GE and LE symbol  have mis-directed the browser surface&lt;BR /&gt;
 &lt;BR /&gt;
The original message text may now be visible as quoted above, along with the hint&lt;BR /&gt;
 &lt;BR /&gt;
NOTE: The IN referred to may have been transformed from an OR to an IN at some point during PROC SQL where clause optimization.&lt;BR /&gt;
 &lt;BR /&gt;
I would suggest using option SYMBOLGEN and converting the testing of ReportTime into a "between" test like&lt;BR /&gt;
&lt;BR /&gt;
where reportTime between &amp;amp;MTDfromdate  and &amp;amp;MTDtodate&lt;BR /&gt;
 &lt;BR /&gt;
good luck&lt;BR /&gt;
peterC</description>
    <pubDate>Wed, 05 Jan 2011 18:16:09 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2011-01-05T18:16:09Z</dc:date>
    <item>
      <title>ERROR: Expression using IN has components that are of different data types.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/57971#M16178</link>
      <description>Anyone know why i am getting this error, level_7_id are both of same data type?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
44   PROC SQL;&lt;BR /&gt;
45   CREATE table Calls_Handled_Temp AS&lt;BR /&gt;
46   SELECT A.SiteID,A.Indicator_OutSource, B.ReportTime,B.Level_7_ID, B.agentcallshandled&lt;BR /&gt;
47   FROM  level7 A FULL JOIN jennifer.tbl_vccartsceintrvl B&lt;BR /&gt;
48   ON (A.Level_7_ID = B.Level_7_ID)&lt;BR /&gt;
49   WHERE&lt;BR /&gt;
50   ReportTime &amp;gt;= &amp;amp;MTDfromdate and ReportTime &amp;lt;= &amp;amp;MTDTodate&lt;BR /&gt;
51   order by ReportTime asc;&lt;BR /&gt;
ERROR: Expression using IN has components that are of different data types.&lt;BR /&gt;
NOTE: The IN referred to may have been transformed from an OR to an IN at some point during PROC&lt;BR /&gt;
      SQL where clause optimization.&lt;BR /&gt;
52&lt;BR /&gt;
53   QUIT;&lt;BR /&gt;
&lt;BR /&gt;
Fred</description>
      <pubDate>Tue, 04 Jan 2011 15:52:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/57971#M16178</guid>
      <dc:creator>fredbell</dc:creator>
      <dc:date>2011-01-04T15:52:01Z</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-Procedures/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/57972#M16179</link>
      <description>Perhaps you made a typo? There is no "IN" expression shown in your code.</description>
      <pubDate>Tue, 04 Jan 2011 16:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/57972#M16179</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2011-01-04T16:20: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-Procedures/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/57973#M16180</link>
      <description>Please check where condition and Macro Variable value and data type.&lt;BR /&gt;
If you want to check, please run without where condition then see.&lt;BR /&gt;
If you are not getting any error then it would be problem with the Macro variable .</description>
      <pubDate>Tue, 04 Jan 2011 17:51:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/57973#M16180</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-01-04T17:51:51Z</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-Procedures/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/57974#M16181</link>
      <description>&amp;gt; Anyone know why i am getting this error, level_7_id&lt;BR /&gt;
&amp;gt; are both of same data type?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; 44   PROC SQL;&lt;BR /&gt;
&amp;gt; 45   CREATE table Calls_Handled_Temp AS&lt;BR /&gt;
&amp;gt; 46   SELECT A.SiteID,A.Indicator_OutSource,&lt;BR /&gt;
&amp;gt; B.ReportTime,B.Level_7_ID, B.agentcallshandled&lt;BR /&gt;
&amp;gt; 47   FROM  level7 A FULL JOIN&lt;BR /&gt;
&amp;gt; jennifer.tbl_vccartsceintrvl B&lt;BR /&gt;
&amp;gt; 48   ON (A.Level_7_ID = B.Level_7_ID)&lt;BR /&gt;
&amp;gt; 49   WHERE&lt;BR /&gt;
&amp;gt; 50   ReportTime &amp;gt;= &amp;amp;MTDfromdate and ReportTime &amp;lt;=&lt;BR /&gt;
&amp;gt; &amp;amp;MTDTodate&lt;BR /&gt;
&amp;gt; 51   order by ReportTime asc;&lt;BR /&gt;
&amp;gt; ERROR: Expression using IN has components that are of&lt;BR /&gt;
&amp;gt; different data types.&lt;BR /&gt;
&amp;gt; NOTE: The IN referred to may have been transformed&lt;BR /&gt;
&amp;gt; from an OR to an IN at some point during PROC&lt;BR /&gt;
&amp;gt;       SQL where clause optimization.&lt;BR /&gt;
&amp;gt;    QUIT;&lt;BR /&gt;
&amp;gt; red&lt;BR /&gt;
&lt;BR /&gt;
unfortunately a GE and LE symbol  have mis-directed the browser surface&lt;BR /&gt;
 &lt;BR /&gt;
The original message text may now be visible as quoted above, along with the hint&lt;BR /&gt;
 &lt;BR /&gt;
NOTE: The IN referred to may have been transformed from an OR to an IN at some point during PROC SQL where clause optimization.&lt;BR /&gt;
 &lt;BR /&gt;
I would suggest using option SYMBOLGEN and converting the testing of ReportTime into a "between" test like&lt;BR /&gt;
&lt;BR /&gt;
where reportTime between &amp;amp;MTDfromdate  and &amp;amp;MTDtodate&lt;BR /&gt;
 &lt;BR /&gt;
good luck&lt;BR /&gt;
peterC</description>
      <pubDate>Wed, 05 Jan 2011 18:16:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-IN-has-components-that-are-of-different/m-p/57974#M16181</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-01-05T18:16:09Z</dc:date>
    </item>
  </channel>
</rss>

