<?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: SAS 9.4 ERROR: WHERE clause operator requires compatible variables. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183368#M34842</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use proc contents to check, the WHERE clause variable is a character variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Sep 2014 15:24:16 GMT</pubDate>
    <dc:creator>xinjian</dc:creator>
    <dc:date>2014-09-03T15:24:16Z</dc:date>
    <item>
      <title>SAS 9.4 ERROR: WHERE clause operator requires compatible variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183363#M34837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I had a SAS 9.4 installed about 2 months. I have running a same program about several days. suddenly, it appeared an error today in log file as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: WHERE clause operator requires compatible variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does someone know how fix this problem?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 19:38:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183363#M34837</guid>
      <dc:creator>xinjian</dc:creator>
      <dc:date>2014-09-02T19:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 ERROR: WHERE clause operator requires compatible variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183364#M34838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It means your where condition is expecting a numeric or character variable and you're providing the opposite. If you have an import step in your program I'd start there for debugging, using the variables indicated in the WHERE clause as an indicator of what to check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 19:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183364#M34838</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-09-02T19:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 ERROR: WHERE clause operator requires compatible variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183365#M34839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To add to Reeza's comment, try a PROC CONTENTS on your data set to see if the variables are of the type you expect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 21:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183365#M34839</guid>
      <dc:creator>Fugue</dc:creator>
      <dc:date>2014-09-02T21:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 ERROR: WHERE clause operator requires compatible variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183366#M34840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you have a error occuring when the progran hasn't changed.&lt;/P&gt;&lt;P&gt;that kind of thing happens with the "flexibility" of proc import reading from excel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 21:28:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183366#M34840</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-09-02T21:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 ERROR: WHERE clause operator requires compatible variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183367#M34841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But another possibility is that former versions of a variable used to be numeric or character in the Excel file and, possibly, the input data changed the format of the variable, so now the WHERE statement that used to work doesn't work. It really comes down to either the data or the code. I have seen PROC IMPORT act funky -- but usually it's my fault for changing some option or registry setting (like the one for guessingrows) without remembering that I did the change.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 22:46:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183367#M34841</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-09-02T22:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 ERROR: WHERE clause operator requires compatible variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183368#M34842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use proc contents to check, the WHERE clause variable is a character variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 15:24:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183368#M34842</guid>
      <dc:creator>xinjian</dc:creator>
      <dc:date>2014-09-03T15:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 ERROR: WHERE clause operator requires compatible variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183369#M34843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background: white; font-family: 'Courier New'; font-size: 10pt; mso-bidi-font-weight: bold;"&gt;Hi Cynthia, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; font-family: 'Courier New'; font-size: 10pt; mso-bidi-font-weight: bold;"&gt;Here is the program:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;PROC &lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;IMPORT&lt;/STRONG&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;OUT&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=WORK.BASELINE&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;DATAFILE&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;"d:\Baseline combine.xlsx"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;DBMS&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=EXCEL REPLACE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;SHEET&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;"Sheet9$"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;GETNAMES&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=YES;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;MIXED&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=NO;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;SCANTEXT&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=YES;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;USEDATE&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=YES&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;SCANTIME&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;=YES;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG style="line-height: 115%; color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'Courier New'; font-size: 10pt;"&gt;Do I need to change the program to solve the problem? I think the problem is from excel file. When I sort data within excel, the number of one character variable ( ID variable)automatically changed(only one observation). I have to undo the sort function to change back. Should I save excel file as a special format?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'Courier New'; font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; line-height: 115%; font-family: 'Courier New'; font-size: 10pt;"&gt;Xinjian &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 15:46:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183369#M34843</guid>
      <dc:creator>xinjian</dc:creator>
      <dc:date>2014-09-03T15:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 ERROR: WHERE clause operator requires compatible variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183370#M34844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is impossible to answer in the Forum. I would recommend that you open a track with Tech Support. There is no WHERE clause in your code. So either you are not showing all your code or PROC IMPORT is giving you a WHERE statement error, which doesn't make sense. But since you did NOT post your log showing PROC IMPORT giving you the WHERE statement error, there is no basis on which to make even an educated guess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You maintain that the program has not changed. However, SOMETHING changed. Either the data changed or the program changed. You indicate that your version of SAS changed, but did not say whether you had run the program previously in the last 2 months or not. This is a case where someone has to look at ALL your code (ALL your code) and your log for ALL your code and look at ALL your data in order to help you come to a resolution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 16:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183370#M34844</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-09-03T16:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 ERROR: WHERE clause operator requires compatible variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183371#M34845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your response. I run same program last week with SAS 9.4 without problem. It happened 2 days ago. Here is the log file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;404&amp;nbsp; title 'normality test for ICA WITH ACA NORMAL ';&lt;/P&gt;&lt;P&gt;405&amp;nbsp; proc univariate data = baseline2 normal plot;&lt;/P&gt;&lt;P&gt;406&amp;nbsp; where LA=1 ;&lt;/P&gt;&lt;P&gt;ERROR: WHERE clause operator requires compatible variables.&lt;/P&gt;&lt;P&gt;407&amp;nbsp; var LICAM;&lt;/P&gt;&lt;P&gt;408&amp;nbsp; id number;&lt;/P&gt;&lt;P&gt;409&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LA is a character variable.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Xinjian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 16:24:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183371#M34845</guid>
      <dc:creator>xinjian</dc:creator>
      <dc:date>2014-09-03T16:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 ERROR: WHERE clause operator requires compatible variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183372#M34846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using a proc import. That one is delivering results on the content and they are not predefined.&lt;/P&gt;&lt;P&gt;All depends ... &lt;BR /&gt;It could be LA was first numeric so you where statement has compatible variables.&lt;/P&gt;&lt;P&gt;This time someone send it and LA is now defined by him as character. This will cause the mentioned error.&lt;/P&gt;&lt;P&gt;By that your unexpected behavior is an expected result of the design of the data processing. No problem... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 16:32:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183372#M34846</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-03T16:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.4 ERROR: WHERE clause operator requires compatible variables.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183373#M34847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaap,&lt;/P&gt;&lt;P&gt;You are right. I changed LA to numeric. It works well.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Xinjian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 16:42:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-9-4-ERROR-WHERE-clause-operator-requires-compatible/m-p/183373#M34847</guid>
      <dc:creator>xinjian</dc:creator>
      <dc:date>2014-09-03T16:42:43Z</dc:date>
    </item>
  </channel>
</rss>

