<?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: How does SET INSET(OBS=n) work with a following WHERE statement? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-does-SET-INSET-OBS-n-work-with-a-following-WHERE-statement/m-p/451421#M113796</link>
    <description>&lt;P&gt;See Maxim 4.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Apr 2018 08:20:30 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-04-05T08:20:30Z</dc:date>
    <item>
      <title>How does SET INSET(OBS=n) work with a following WHERE statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-SET-INSET-OBS-n-work-with-a-following-WHERE-statement/m-p/451370#M113773</link>
      <description>&lt;PRE&gt;data outset;
   set inset (obs=10);
   where X=Y;&lt;/PRE&gt;&lt;P&gt;Does this code logic mean:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Select the first 10 observations from inset and&amp;nbsp;select WHERE X=Y from those 10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Select observations from inset and apply WHERE X=Y until&amp;nbsp;10 observations have been selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume the former but there is an ambiguous question/solution in the Base Programming 2 course that is throwing me off:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&lt;SPAN&gt;Read only the first 10 observations satisfying the WHERE statement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;set orion.order_fact (obs=10);
   where year(Order_Date)=2009;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Apr 2018 02:03:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-SET-INSET-OBS-n-work-with-a-following-WHERE-statement/m-p/451370#M113773</guid>
      <dc:creator>mk123451243</dc:creator>
      <dc:date>2018-04-05T02:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: How does SET INSET(OBS=n) work with a following WHERE statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-SET-INSET-OBS-n-work-with-a-following-WHERE-statement/m-p/451375#M113775</link>
      <description>&lt;P&gt;This:&amp;nbsp;&lt;SPAN&gt;Select observations from inset and apply WHERE X=Y until&amp;nbsp;10 observations have been selected.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have access to SAS, it is a lot faster to test yourself than to ask here, and a much better way to learn as well, by doing.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 02:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-SET-INSET-OBS-n-work-with-a-following-WHERE-statement/m-p/451375#M113775</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-04-05T02:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: How does SET INSET(OBS=n) work with a following WHERE statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-SET-INSET-OBS-n-work-with-a-following-WHERE-statement/m-p/451377#M113776</link>
      <description>&lt;P&gt;Compare test1 with test2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test1;
set sashelp.class(obs=1);
where name = "John";
run;

proc print data=test1; run;

data test2;
set sashelp.class(obs=1);
run;

proc print data=test2; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If the WHERE condition was applied after the observation count, test1 would be empty.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 02:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-SET-INSET-OBS-n-work-with-a-following-WHERE-statement/m-p/451377#M113776</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-04-05T02:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: How does SET INSET(OBS=n) work with a following WHERE statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-SET-INSET-OBS-n-work-with-a-following-WHERE-statement/m-p/451421#M113796</link>
      <description>&lt;P&gt;See Maxim 4.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 08:20:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-SET-INSET-OBS-n-work-with-a-following-WHERE-statement/m-p/451421#M113796</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-05T08:20:30Z</dc:date>
    </item>
  </channel>
</rss>

