<?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: Restrict a data set to a specific factor/label in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Restrict-a-data-set-to-a-specific-factor-label/m-p/5323#M2151</link>
    <description>I tried your suggestion yesterday night.&lt;BR /&gt;
&lt;BR /&gt;
It works!&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot!&lt;BR /&gt;
&lt;BR /&gt;
govert</description>
    <pubDate>Fri, 02 Nov 2007 09:37:08 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-11-02T09:37:08Z</dc:date>
    <item>
      <title>Restrict a data set to a specific factor/label</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Restrict-a-data-set-to-a-specific-factor-label/m-p/5321#M2149</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I'm working with large datasets. With only a part of the dataset I want to do calculations. How can I filter or restrict my data set in such a manner that only the important data is included. I have columns with labels on which I can select.&lt;BR /&gt;
&lt;BR /&gt;
e.g. a dataset:&lt;BR /&gt;
Names dataA dataB&lt;BR /&gt;
NameA  1 2&lt;BR /&gt;
NameB 1 3&lt;BR /&gt;
NameC 1 4&lt;BR /&gt;
NameB 3 6 &lt;BR /&gt;
NameC 5 9&lt;BR /&gt;
NameB 5 9&lt;BR /&gt;
NameA 3 0&lt;BR /&gt;
NameB 7 0&lt;BR /&gt;
&lt;BR /&gt;
I want only the observations with the label NameB, thus the result must be the dataset:&lt;BR /&gt;
&lt;BR /&gt;
Names dataA dataB&lt;BR /&gt;
NameB 1 3&lt;BR /&gt;
NameB 3 6&lt;BR /&gt;
NameB 5 9 &lt;BR /&gt;
NameB 7 0&lt;BR /&gt;
&lt;BR /&gt;
I tried some things with proc sort, but then the dataset is sorted according to the labels, but I want to exclude the data which have not the right label.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance,&lt;BR /&gt;
&lt;BR /&gt;
Govert</description>
      <pubDate>Thu, 01 Nov 2007 13:57:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Restrict-a-data-set-to-a-specific-factor-label/m-p/5321#M2149</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-11-01T13:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict a data set to a specific factor/label</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Restrict-a-data-set-to-a-specific-factor-label/m-p/5322#M2150</link>
      <description>try something like:&lt;BR /&gt;
proc sort data=instuff out=outstuff;&lt;BR /&gt;
  by var1 var2 ...;&lt;BR /&gt;
  where names = 'NameB';&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 01 Nov 2007 14:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Restrict-a-data-set-to-a-specific-factor-label/m-p/5322#M2150</guid>
      <dc:creator>advoss</dc:creator>
      <dc:date>2007-11-01T14:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict a data set to a specific factor/label</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Restrict-a-data-set-to-a-specific-factor-label/m-p/5323#M2151</link>
      <description>I tried your suggestion yesterday night.&lt;BR /&gt;
&lt;BR /&gt;
It works!&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot!&lt;BR /&gt;
&lt;BR /&gt;
govert</description>
      <pubDate>Fri, 02 Nov 2007 09:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Restrict-a-data-set-to-a-specific-factor-label/m-p/5323#M2151</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-11-02T09:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict a data set to a specific factor/label</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Restrict-a-data-set-to-a-specific-factor-label/m-p/5324#M2152</link>
      <description>Try This..&lt;BR /&gt;
&lt;BR /&gt;
proc sql noprint;&lt;BR /&gt;
create table dataset1 as&lt;BR /&gt;
select * from dataset&lt;BR /&gt;
where Names eq "NameB";&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Srinu</description>
      <pubDate>Fri, 02 Nov 2007 12:23:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Restrict-a-data-set-to-a-specific-factor-label/m-p/5324#M2152</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-11-02T12:23:26Z</dc:date>
    </item>
  </channel>
</rss>

