<?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: Convert positive number to negative and negative to positive in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-positive-number-to-negative-and-negative-to-positive/m-p/814849#M40732</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/362518"&gt;@durgeshrpatil&lt;/a&gt;&amp;nbsp; The code has been provided earlier in this thread.&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2022 11:29:17 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-05-24T11:29:17Z</dc:date>
    <item>
      <title>Convert positive number to negative and negative to positive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-positive-number-to-negative-and-negative-to-positive/m-p/43311#M5089</link>
      <description>I need to convert a column of numbers to the opposite signs (positive to negative and negative to positive). I have been able to set up a computed column using the case function. However some of the values are zeros and nulls and these are coming out as "1". Any ideas or other functions I could use? &lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Wed, 10 Jun 2009 21:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-positive-number-to-negative-and-negative-to-positive/m-p/43311#M5089</guid>
      <dc:creator>EG_Mel</dc:creator>
      <dc:date>2009-06-10T21:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Convert positive number to negative and negative to positive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-positive-number-to-negative-and-negative-to-positive/m-p/43312#M5090</link>
      <description>Just multiply by -1 .</description>
      <pubDate>Thu, 11 Jun 2009 02:46:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-positive-number-to-negative-and-negative-to-positive/m-p/43312#M5090</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-06-11T02:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Convert positive number to negative and negative to positive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-positive-number-to-negative-and-negative-to-positive/m-p/43313#M5091</link>
      <description>- (minus) can be a "unary operator", like [pre]       fall = - rise ; [/pre] It is also referred to as a "prefix operator" in  the doc at &lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000780367.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000780367.htm&lt;/A&gt; .&lt;BR /&gt;
 &lt;BR /&gt;
PeterC</description>
      <pubDate>Thu, 11 Jun 2009 11:48:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-positive-number-to-negative-and-negative-to-positive/m-p/43313#M5091</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-06-11T11:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Convert positive number to negative and negative to positive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-positive-number-to-negative-and-negative-to-positive/m-p/43314#M5092</link>
      <description>If the var is called "x", then&lt;BR /&gt;
&lt;BR /&gt;
x = -x;&lt;BR /&gt;
&lt;BR /&gt;
changes the sign and you don't create a new variable.  In the context of an assignment statement (data step), "=" means "assign the value of the expression on the right to the variable on the left".  Similar to the SQL 'as' clause.</description>
      <pubDate>Thu, 11 Jun 2009 13:11:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-positive-number-to-negative-and-negative-to-positive/m-p/43314#M5092</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-06-11T13:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Convert positive number to negative and negative to positive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-positive-number-to-negative-and-negative-to-positive/m-p/339406#M22541</link>
      <description>&lt;P&gt;how can I convert the negative numbers to positive only without changing positive numbers?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;your help will be appreciated&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 20:07:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-positive-number-to-negative-and-negative-to-positive/m-p/339406#M22541</guid>
      <dc:creator>lalohg</dc:creator>
      <dc:date>2017-03-08T20:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Convert positive number to negative and negative to positive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-positive-number-to-negative-and-negative-to-positive/m-p/339416#M22542</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/39435"&gt;@lalohg&lt;/a&gt;&amp;nbsp;You mean, take the absolute value? &amp;nbsp;Use the &lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/69762/HTML/default/viewer.htm#p0xkrj83an7dknn1sgukpmnphcje.htm" target="_self"&gt;ABS() function&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x = abs(x);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Mar 2017 20:13:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-positive-number-to-negative-and-negative-to-positive/m-p/339416#M22542</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-03-08T20:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Convert positive number to negative and negative to positive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-positive-number-to-negative-and-negative-to-positive/m-p/339424#M22543</link>
      <description>&lt;P&gt;Yes!!! &amp;nbsp;Thanks Chris&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 20:29:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-positive-number-to-negative-and-negative-to-positive/m-p/339424#M22543</guid>
      <dc:creator>lalohg</dc:creator>
      <dc:date>2017-03-08T20:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Convert positive number to negative and negative to positive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-positive-number-to-negative-and-negative-to-positive/m-p/814834#M40731</link>
      <description>Could you please share in the code</description>
      <pubDate>Tue, 24 May 2022 09:51:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-positive-number-to-negative-and-negative-to-positive/m-p/814834#M40731</guid>
      <dc:creator>durgeshrpatil</dc:creator>
      <dc:date>2022-05-24T09:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Convert positive number to negative and negative to positive</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-positive-number-to-negative-and-negative-to-positive/m-p/814849#M40732</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/362518"&gt;@durgeshrpatil&lt;/a&gt;&amp;nbsp; The code has been provided earlier in this thread.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 11:29:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-positive-number-to-negative-and-negative-to-positive/m-p/814849#M40732</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-05-24T11:29:17Z</dc:date>
    </item>
  </channel>
</rss>

