<?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 do I separate negative and positive values and create 2 more variables containing those valu in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/How-do-I-separate-negative-and-positive-values-and-create-2-more/m-p/564760#M7833</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data is;
Input  amt;
Datalines;
40
20
-10
-30
50
-20
0
;
Run;

data want;
set is;
if sign(amt)=-1 then neg_ve=amt;
else p_ve=amt;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 09 Jun 2019 15:59:30 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-06-09T15:59:30Z</dc:date>
    <item>
      <title>How do I separate negative and positive values and create 2 more variables containing those values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-do-I-separate-negative-and-positive-values-and-create-2-more/m-p/564758#M7831</link>
      <description>Using data step&lt;BR /&gt;&lt;BR /&gt;Data is;&lt;BR /&gt;Input if amt;&lt;BR /&gt;Datalines;&lt;BR /&gt;40&lt;BR /&gt;20&lt;BR /&gt;-10&lt;BR /&gt;-30&lt;BR /&gt;50&lt;BR /&gt;-20&lt;BR /&gt;Run;&lt;BR /&gt;</description>
      <pubDate>Sun, 09 Jun 2019 15:49:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-do-I-separate-negative-and-positive-values-and-create-2-more/m-p/564758#M7831</guid>
      <dc:creator>Mounika2</dc:creator>
      <dc:date>2019-06-09T15:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I separate negative and positive values and create 2 more variables containing those valu</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-do-I-separate-negative-and-positive-values-and-create-2-more/m-p/564760#M7833</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data is;
Input  amt;
Datalines;
40
20
-10
-30
50
-20
0
;
Run;

data want;
set is;
if sign(amt)=-1 then neg_ve=amt;
else p_ve=amt;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 09 Jun 2019 15:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-do-I-separate-negative-and-positive-values-and-create-2-more/m-p/564760#M7833</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-06-09T15:59:30Z</dc:date>
    </item>
  </channel>
</rss>

