<?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: problem with the where function to check for missing values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/problem-with-the-where-function-to-check-for-missing-values/m-p/809474#M319232</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/423579"&gt;@Ngo99&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;hi, I am trying to check for missing values in the dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the code I used to check for missing values:&lt;/P&gt;
&lt;P&gt;PROC PRINT data = WORK.IMPORT;&lt;BR /&gt;WHERE ID = ' ' OR name = .;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the error message after running the code:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ERROR: WHERE clause operator requires compatible variables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I seriously doubt that a variable called "name" will be numeric. Check for the data types of the variables and use the proper missing values.&lt;/P&gt;</description>
    <pubDate>Sun, 24 Apr 2022 09:38:27 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-04-24T09:38:27Z</dc:date>
    <item>
      <title>problem with the where function to check for missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problem-with-the-where-function-to-check-for-missing-values/m-p/809473#M319231</link>
      <description>&lt;P&gt;hi, I am trying to check for missing values in the dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code I used to check for missing values:&lt;/P&gt;&lt;P&gt;PROC PRINT data = WORK.IMPORT;&lt;BR /&gt;WHERE ID = ' ' OR name = .;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the error message after running the code:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ERROR: WHERE clause operator requires compatible variables.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 09:05:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problem-with-the-where-function-to-check-for-missing-values/m-p/809473#M319231</guid>
      <dc:creator>Ngo99</dc:creator>
      <dc:date>2022-04-24T09:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: problem with the where function to check for missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problem-with-the-where-function-to-check-for-missing-values/m-p/809474#M319232</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/423579"&gt;@Ngo99&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;hi, I am trying to check for missing values in the dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the code I used to check for missing values:&lt;/P&gt;
&lt;P&gt;PROC PRINT data = WORK.IMPORT;&lt;BR /&gt;WHERE ID = ' ' OR name = .;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the error message after running the code:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ERROR: WHERE clause operator requires compatible variables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I seriously doubt that a variable called "name" will be numeric. Check for the data types of the variables and use the proper missing values.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 09:38:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problem-with-the-where-function-to-check-for-missing-values/m-p/809474#M319232</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-24T09:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: problem with the where function to check for missing values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/problem-with-the-where-function-to-check-for-missing-values/m-p/809479#M319234</link>
      <description>&lt;P&gt;To define a where clause syntax that deals with both numerical and character variables you could use the missing() function as below:&lt;/P&gt;
&lt;PRE&gt;WHERE missing(ID) or missing(name);&lt;/PRE&gt;
&lt;P&gt;or alternatively the cmiss() function:&lt;/P&gt;
&lt;PRE&gt;where cmiss(id,name)&amp;gt;0;&lt;/PRE&gt;</description>
      <pubDate>Sun, 24 Apr 2022 10:13:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/problem-with-the-where-function-to-check-for-missing-values/m-p/809479#M319234</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-04-24T10:13:57Z</dc:date>
    </item>
  </channel>
</rss>

