<?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: %sysfunc(open(dataset)) using where clause  doesn't seem to filter in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sysfunc-open-dataset-using-where-clause-doesn-t-seem-to-filter/m-p/98900#M20850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've attached a macro I use to determine the number of observations for various scenarios.&amp;nbsp; Perhaps you'll find it useful.&amp;nbsp; You'll have to modify it to remove the call to %parmv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Oct 2013 00:03:12 GMT</pubDate>
    <dc:creator>ScottBass</dc:creator>
    <dc:date>2013-10-01T00:03:12Z</dc:date>
    <item>
      <title>%sysfunc(open(dataset)) using where clause  doesn't seem to filter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sysfunc-open-dataset-using-where-clause-doesn-t-seem-to-filter/m-p/98898#M20848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello:&amp;nbsp; Can someone help explain to me why this codeset returns a value of 19, instead of 9?&amp;nbsp; For some reason, it's not applying my where clause as I'd expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; dsid = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;(open(sashelp.class (where=(Sex="F"))));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; Gender_NOBS =&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;(attrn(&amp;amp;dsid,NOBS));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; rc = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;(close(&amp;amp;dsid));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; Gender Count =&amp;nbsp; &amp;amp;Gender_NOBS;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 21:13:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sysfunc-open-dataset-using-where-clause-doesn-t-seem-to-filter/m-p/98898#M20848</guid>
      <dc:creator>Bullfrog</dc:creator>
      <dc:date>2013-09-30T21:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: %sysfunc(open(dataset)) using where clause  doesn't seem to filter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sysfunc-open-dataset-using-where-clause-doesn-t-seem-to-filter/m-p/98899#M20849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From online doc:&lt;/P&gt;&lt;H4 class="xis-argument"&gt;NOBS&lt;/H4&gt;&lt;P class="xis-paraSimpleFirst"&gt;specifies the number of physical observations (including the observations that are marked for deletion). &lt;STRONG&gt;&lt;EM&gt;An active WHERE clause does not affect this number.&lt;/EM&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 21:46:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sysfunc-open-dataset-using-where-clause-doesn-t-seem-to-filter/m-p/98899#M20849</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-09-30T21:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: %sysfunc(open(dataset)) using where clause  doesn't seem to filter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sysfunc-open-dataset-using-where-clause-doesn-t-seem-to-filter/m-p/98900#M20850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've attached a macro I use to determine the number of observations for various scenarios.&amp;nbsp; Perhaps you'll find it useful.&amp;nbsp; You'll have to modify it to remove the call to %parmv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 00:03:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sysfunc-open-dataset-using-where-clause-doesn-t-seem-to-filter/m-p/98900#M20850</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2013-10-01T00:03:12Z</dc:date>
    </item>
  </channel>
</rss>

