<?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: get rid of negative sing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/get-rid-of-negative-sing/m-p/604504#M175272</link>
    <description>&lt;P&gt;if numeric. use &lt;STRONG&gt;abs&lt;/STRONG&gt; function&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
amt = -123490;
am1=abs(amt);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 Nov 2019 15:34:59 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-11-15T15:34:59Z</dc:date>
    <item>
      <title>get rid of negative sing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/get-rid-of-negative-sing/m-p/604501#M175271</link>
      <description>&lt;P&gt;How do I get rid of the negative sing. -123490 I have and I want 123490.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;amt = -123490;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want amt1 = 123490 without the negative sign.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 15:29:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/get-rid-of-negative-sing/m-p/604501#M175271</guid>
      <dc:creator>mauri0623</dc:creator>
      <dc:date>2019-11-15T15:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: get rid of negative sing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/get-rid-of-negative-sing/m-p/604504#M175272</link>
      <description>&lt;P&gt;if numeric. use &lt;STRONG&gt;abs&lt;/STRONG&gt; function&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
amt = -123490;
am1=abs(amt);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Nov 2019 15:34:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/get-rid-of-negative-sing/m-p/604504#M175272</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-11-15T15:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: get rid of negative sing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/get-rid-of-negative-sing/m-p/604524#M175278</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you only want to get rid of the minus sign when you display results in reports but&lt;/P&gt;
&lt;P&gt;without losing the information in the dataset, you can use a format as follows :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value noneg other=[abs()];
run;

data have;
x=-1;
run;

proc print data=have;
format x noneg.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Nov 2019 16:20:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/get-rid-of-negative-sing/m-p/604524#M175278</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2019-11-15T16:20:31Z</dc:date>
    </item>
  </channel>
</rss>

