<?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: Eliminate a categorical group from a variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Eliminate-a-categorical-group-from-a-variable/m-p/589235#M168500</link>
    <description>&lt;P&gt;You probally need to quote the value to make it a string constant and not a variable name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data survived;
set birds;
if status = "perished" then delete;
run;

proc print data= survived; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2019 03:12:25 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2019-09-17T03:12:25Z</dc:date>
    <item>
      <title>Eliminate a categorical group from a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Eliminate-a-categorical-group-from-a-variable/m-p/589229#M168496</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very new and green to SAS and I am sure that I just not writing something correctly. I have a data set where one of the variables is called status (survived vs perished). I want to select only the ones that survived which I am coding in the following way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data survived;&lt;/P&gt;&lt;P&gt;set birds;&lt;/P&gt;&lt;P&gt;if status = perished then delete;&lt;/P&gt;&lt;P&gt;proc print data= survived;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once I do that keeps printing all the data without deleting the ones that perished. Can someone help me please?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 02:25:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Eliminate-a-categorical-group-from-a-variable/m-p/589229#M168496</guid>
      <dc:creator>AnaVelloso</dc:creator>
      <dc:date>2019-09-17T02:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminate a categorical group from a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Eliminate-a-categorical-group-from-a-variable/m-p/589235#M168500</link>
      <description>&lt;P&gt;You probally need to quote the value to make it a string constant and not a variable name&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data survived;
set birds;
if status = "perished" then delete;
run;

proc print data= survived; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 03:12:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Eliminate-a-categorical-group-from-a-variable/m-p/589235#M168500</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-09-17T03:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminate a categorical group from a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Eliminate-a-categorical-group-from-a-variable/m-p/589238#M168503</link>
      <description>Other things to note:&lt;BR /&gt;&lt;BR /&gt;Capitalization matters.  These are all different:&lt;BR /&gt;&lt;BR /&gt;Perished&lt;BR /&gt;PERISHED &lt;BR /&gt;perished&lt;BR /&gt;&lt;BR /&gt;You don't need a data step to print a subset.  This is a valid approach:&lt;BR /&gt;&lt;BR /&gt;proc print data=birds;&lt;BR /&gt;where status="perished";&lt;BR /&gt;run;</description>
      <pubDate>Tue, 17 Sep 2019 03:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Eliminate-a-categorical-group-from-a-variable/m-p/589238#M168503</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-09-17T03:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminate a categorical group from a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Eliminate-a-categorical-group-from-a-variable/m-p/589240#M168504</link>
      <description>&lt;P&gt;That was my problem! thanks so much!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 03:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Eliminate-a-categorical-group-from-a-variable/m-p/589240#M168504</guid>
      <dc:creator>AnaVelloso</dc:creator>
      <dc:date>2019-09-17T03:28:41Z</dc:date>
    </item>
  </channel>
</rss>

