<?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 subsets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/subsets/m-p/628467#M185714</link>
    <description>&lt;P&gt;how do i create a subset of my sample?&lt;/P&gt;&lt;P&gt;for example i&amp;nbsp; have a sample of 1500, and want to look at those with only certain&amp;nbsp; characteristics;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would like get the proc freq for those only with the characteristics as well.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 29 Feb 2020 19:12:12 GMT</pubDate>
    <dc:creator>okb12886</dc:creator>
    <dc:date>2020-02-29T19:12:12Z</dc:date>
    <item>
      <title>subsets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/subsets/m-p/628467#M185714</link>
      <description>&lt;P&gt;how do i create a subset of my sample?&lt;/P&gt;&lt;P&gt;for example i&amp;nbsp; have a sample of 1500, and want to look at those with only certain&amp;nbsp; characteristics;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would like get the proc freq for those only with the characteristics as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Feb 2020 19:12:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/subsets/m-p/628467#M185714</guid>
      <dc:creator>okb12886</dc:creator>
      <dc:date>2020-02-29T19:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: subsets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/subsets/m-p/628468#M185715</link>
      <description>&lt;P&gt;what would be the code&lt;/P&gt;&lt;P&gt;please &amp;amp; thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Feb 2020 19:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/subsets/m-p/628468#M185715</guid>
      <dc:creator>okb12886</dc:creator>
      <dc:date>2020-02-29T19:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: subsets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/subsets/m-p/628471#M185717</link>
      <description>&lt;P&gt;You can add in WHERE statements to filter your results as needed. Almost any PROC's in SAS will take a WHERE statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*filter a numeric value*/
proc freq data=sashelp.class;
where age = 13;
table sex;
run;

/*filter multiple numeric values*/
proc freq data=sashelp.class;
where age  in (10, 11);
table sex;
run;

/*filter a character values*/
proc freq data=sashelp.class;
where sex = 'F';
table age;
run;

/*filter multiple character values*/
proc freq data=sashelp.class;
where name in ('Jane', 'Alfred');
table age;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/314320"&gt;@okb12886&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;what would be the code&lt;/P&gt;
&lt;P&gt;please &amp;amp; thank you&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Feb 2020 19:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/subsets/m-p/628471#M185717</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-02-29T19:34:33Z</dc:date>
    </item>
  </channel>
</rss>

