<?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 to get only positive values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-only-positive-values/m-p/897309#M354568</link>
    <description>&lt;P&gt;What does the actual resulting data set look like?&lt;/P&gt;
&lt;P&gt;One interpretation of your request would remove entire observations from the data set if any of the variables are negative.&lt;/P&gt;
&lt;P&gt;Another would be to set the negative values to missing.&lt;/P&gt;
&lt;P&gt;Another could be create custom format so that negative values appear as blanks in printed output.&lt;/P&gt;
&lt;P&gt;Another could be remove a variable from a data set if any of its values are negative.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I were more awake I might even come up with more meanings for "only positive values"&lt;/P&gt;</description>
    <pubDate>Thu, 05 Oct 2023 06:35:08 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-10-05T06:35:08Z</dc:date>
    <item>
      <title>How to get only positive values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-only-positive-values/m-p/897304#M354564</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
infile cards;
input A1 A2 A3 A4 A5;
cards;
-2 2 5 1 0
1 -2 5 1 2
;
run;
how to get only positive values ?&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Oct 2023 06:10:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-only-positive-values/m-p/897304#M354564</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2023-10-05T06:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get only positive values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-only-positive-values/m-p/897306#M354565</link>
      <description>&lt;P&gt;What is your desired result?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 06:21:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-only-positive-values/m-p/897306#M354565</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2023-10-05T06:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get only positive values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-only-positive-values/m-p/897307#M354566</link>
      <description>&lt;P&gt;Hi Peter,&lt;/P&gt;
&lt;P&gt;I want get only positive values only A1 to A5 variables&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 06:28:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-only-positive-values/m-p/897307#M354566</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2023-10-05T06:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get only positive values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-only-positive-values/m-p/897309#M354568</link>
      <description>&lt;P&gt;What does the actual resulting data set look like?&lt;/P&gt;
&lt;P&gt;One interpretation of your request would remove entire observations from the data set if any of the variables are negative.&lt;/P&gt;
&lt;P&gt;Another would be to set the negative values to missing.&lt;/P&gt;
&lt;P&gt;Another could be create custom format so that negative values appear as blanks in printed output.&lt;/P&gt;
&lt;P&gt;Another could be remove a variable from a data set if any of its values are negative.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I were more awake I might even come up with more meanings for "only positive values"&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 06:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-only-positive-values/m-p/897309#M354568</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-10-05T06:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get only positive values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-only-positive-values/m-p/897318#M354571</link>
      <description>&lt;P&gt;Maxim 42.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 07:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-only-positive-values/m-p/897318#M354571</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-10-05T07:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get only positive values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-only-positive-values/m-p/897319#M354572</link>
      <description>Getting only positive values is easy.  For example, you could program:&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;set test;&lt;BR /&gt;A1 = 7;&lt;BR /&gt;A2 = 7;&lt;BR /&gt;A3 = 7;&lt;BR /&gt;A4 = 7;&lt;BR /&gt;A5 = 7;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;However,  if this is not the set of positive values that you have in mind, maybe you can describe what the result should look like.</description>
      <pubDate>Thu, 05 Oct 2023 07:48:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-only-positive-values/m-p/897319#M354572</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2023-10-05T07:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get only positive values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-only-positive-values/m-p/897326#M354576</link>
      <description>&lt;P&gt;What do you mean by &lt;EM&gt;&lt;STRONG&gt;get&lt;/STRONG&gt;&lt;/EM&gt; in "get only positive values"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't get it.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 08:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-only-positive-values/m-p/897326#M354576</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2023-10-05T08:39:11Z</dc:date>
    </item>
  </channel>
</rss>

