<?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 How to only select non-zero values from a column of data containing 1's and 0's? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-only-select-non-zero-values-from-a-column-of-data/m-p/851532#M336578</link>
    <description>&lt;P&gt;Hi, I am very new to SAS, so I'm still learning...&lt;/P&gt;&lt;P&gt;How do create a new data set and select non-zero values in a column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2022 15:42:51 GMT</pubDate>
    <dc:creator>lolol0101</dc:creator>
    <dc:date>2022-12-29T15:42:51Z</dc:date>
    <item>
      <title>How to only select non-zero values from a column of data containing 1's and 0's?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-only-select-non-zero-values-from-a-column-of-data/m-p/851532#M336578</link>
      <description>&lt;P&gt;Hi, I am very new to SAS, so I'm still learning...&lt;/P&gt;&lt;P&gt;How do create a new data set and select non-zero values in a column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 15:42:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-only-select-non-zero-values-from-a-column-of-data/m-p/851532#M336578</guid>
      <dc:creator>lolol0101</dc:creator>
      <dc:date>2022-12-29T15:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to only select non-zero values from a column of data containing 1's and 0's?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-only-select-non-zero-values-from-a-column-of-data/m-p/851533#M336579</link>
      <description>&lt;P&gt;Let's assume the existing dataset is named HAVE and the variable you want to test is named STATUS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then to make a new dataset, let's call it WANT, that is the subset of HAVE that has non zero values of STATUS you could use this simple data step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  where status ne 0 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 15:46:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-only-select-non-zero-values-from-a-column-of-data/m-p/851533#M336579</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-12-29T15:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to only select non-zero values from a column of data containing 1's and 0's?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-only-select-non-zero-values-from-a-column-of-data/m-p/851536#M336581</link>
      <description>&lt;P&gt;A slight variation on that result:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   set have;
   where status;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This removes cases that have zero for STATUS, and also removes cases that have a missing value for STATUS.&amp;nbsp; Which one you use depends on which result you want.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 16:08:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-only-select-non-zero-values-from-a-column-of-data/m-p/851536#M336581</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2022-12-29T16:08:01Z</dc:date>
    </item>
  </channel>
</rss>

