<?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 display all negative values? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-display-all-negative-values/m-p/292576#M59941</link>
    <description>&lt;P&gt;I have a variable that i created by subtracting one variable from another. I want to be able to view all negative values along with my two original values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I accomplish this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is so easy but I haven't been able to find it online.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc print data=test;
var variable1=-;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I tried other variations of this as well.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2016 21:26:08 GMT</pubDate>
    <dc:creator>christinagting0</dc:creator>
    <dc:date>2016-08-18T21:26:08Z</dc:date>
    <item>
      <title>How to display all negative values?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-display-all-negative-values/m-p/292576#M59941</link>
      <description>&lt;P&gt;I have a variable that i created by subtracting one variable from another. I want to be able to view all negative values along with my two original values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I accomplish this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is so easy but I haven't been able to find it online.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc print data=test;
var variable1=-;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I tried other variations of this as well.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 21:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-display-all-negative-values/m-p/292576#M59941</guid>
      <dc:creator>christinagting0</dc:creator>
      <dc:date>2016-08-18T21:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to display all negative values?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-display-all-negative-values/m-p/292578#M59942</link>
      <description>&lt;P&gt;Did you actually create a new variable? If not then some data code similar to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; newvar = var1-var2;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or are you saying you want to print just those with negative values for the variable?&lt;/P&gt;
&lt;P&gt;Proc print;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; where variable1 &amp;lt; 0;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 21:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-display-all-negative-values/m-p/292578#M59942</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-08-18T21:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to display all negative values?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-display-all-negative-values/m-p/292710#M59950</link>
      <description>&lt;P&gt;oh! so simple. duh! Thank you:)&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 12:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-display-all-negative-values/m-p/292710#M59950</guid>
      <dc:creator>christinagting0</dc:creator>
      <dc:date>2016-08-19T12:26:06Z</dc:date>
    </item>
  </channel>
</rss>

