<?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: I get &amp;quot;WARNING: No data sets qualify for WHERE processing&amp;quot; for WHERE clause in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-get-quot-WARNING-No-data-sets-qualify-for-WHERE-processing/m-p/821665#M324403</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=my_table NOBS N;
where date_field&amp;gt;="1jan21"d;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I'd probably use PROC MEANS.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2022 19:14:21 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2022-07-05T19:14:21Z</dc:date>
    <item>
      <title>I get "WARNING: No data sets qualify for WHERE processing" for WHERE clause</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-get-quot-WARNING-No-data-sets-qualify-for-WHERE-processing/m-p/821625#M324386</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I'm new to SAS Programming. I have the following code:&lt;/P&gt;&lt;PRE&gt;proc contents data=my_table;
where date_field&amp;gt;="1jan21"d;
run;&lt;/PRE&gt;&lt;P&gt;The above throws warning. The variable &lt;EM&gt;date_field&lt;/EM&gt;&amp;nbsp;is formatted as numeric. What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 14:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-get-quot-WARNING-No-data-sets-qualify-for-WHERE-processing/m-p/821625#M324386</guid>
      <dc:creator>current_thing</dc:creator>
      <dc:date>2022-07-05T14:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: I get "WARNING: No data sets qualify for WHERE processing" for WHERE clause</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-get-quot-WARNING-No-data-sets-qualify-for-WHERE-processing/m-p/821644#M324392</link>
      <description>&lt;P&gt;That's an interesting filter to have on a PROC CONTENTS....can you explain what you're trying to do?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;PROC CONTENTS displays the variable name, label, type which doesn't change regardless of filters.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/428110"&gt;@current_thing&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;I'm new to SAS Programming. I have the following code:&lt;/P&gt;
&lt;PRE&gt;proc contents data=my_table;
where date_field&amp;gt;="1jan21"d;
run;&lt;/PRE&gt;
&lt;P&gt;The above throws warning. The variable &lt;EM&gt;date_field&lt;/EM&gt;&amp;nbsp;is formatted as numeric. What am I doing wrong?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 16:28:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-get-quot-WARNING-No-data-sets-qualify-for-WHERE-processing/m-p/821644#M324392</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-07-05T16:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: I get "WARNING: No data sets qualify for WHERE processing" for WHERE clause</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-get-quot-WARNING-No-data-sets-qualify-for-WHERE-processing/m-p/821645#M324393</link>
      <description>Hello. I wanted to get a count of observations based on the date filter. That same where clause works fine in the print procedure, so I know the syntax is correct</description>
      <pubDate>Tue, 05 Jul 2022 16:30:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-get-quot-WARNING-No-data-sets-qualify-for-WHERE-processing/m-p/821645#M324393</guid>
      <dc:creator>current_thing</dc:creator>
      <dc:date>2022-07-05T16:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: I get "WARNING: No data sets qualify for WHERE processing" for WHERE clause</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-get-quot-WARNING-No-data-sets-qualify-for-WHERE-processing/m-p/821649#M324395</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/428110"&gt;@current_thing&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hello. I wanted to get a count of observations based on the date filter. That same where clause works fine in the print procedure, so I know the syntax is correct&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;PROC CONTENTS does NOT count observations. It just reports whatever count the metadata of the dataset already had stored.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To count use some other procedure, like PROC FREQ, PROC MEANS (aka PROC SUMMARY) or PROC SQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could also just use a data step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  set my_table;
  where date_field&amp;gt;="1jan21"d;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And see the number of observations that met the WHERE condition in the NOTEs generated by the data step.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 17:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-get-quot-WARNING-No-data-sets-qualify-for-WHERE-processing/m-p/821649#M324395</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-07-05T17:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: I get "WARNING: No data sets qualify for WHERE processing" for WHERE clause</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-get-quot-WARNING-No-data-sets-qualify-for-WHERE-processing/m-p/821664#M324402</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=my_table NOBS N;
where date_field&amp;gt;="1jan21"d;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I'd probably use PROC MEANS.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 19:14:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-get-quot-WARNING-No-data-sets-qualify-for-WHERE-processing/m-p/821664#M324402</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-07-05T19:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: I get "WARNING: No data sets qualify for WHERE processing" for WHERE clause</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-get-quot-WARNING-No-data-sets-qualify-for-WHERE-processing/m-p/821665#M324403</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=my_table NOBS N;
where date_field&amp;gt;="1jan21"d;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I'd probably use PROC MEANS.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 19:14:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-get-quot-WARNING-No-data-sets-qualify-for-WHERE-processing/m-p/821665#M324403</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-07-05T19:14:21Z</dc:date>
    </item>
  </channel>
</rss>

