<?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 Replacing a value with another in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Replacing-a-value-with-another/m-p/8418#M372</link>
    <description>Hi Everyone.&lt;BR /&gt;
in my example, how can I replace the +/- with 0.0.  &lt;BR /&gt;
&lt;BR /&gt;
data temp;&lt;BR /&gt;
  LENGTH  id  $20.  ;&lt;BR /&gt;
  input id $;&lt;BR /&gt;
datalines;&lt;BR /&gt;
3.5+2.4-2.49.8+2.3&lt;BR /&gt;
-0.2+3.4+-6.54.5-&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
thank you.</description>
    <pubDate>Thu, 19 Mar 2009 18:32:35 GMT</pubDate>
    <dc:creator>glodino</dc:creator>
    <dc:date>2009-03-19T18:32:35Z</dc:date>
    <item>
      <title>Replacing a value with another</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Replacing-a-value-with-another/m-p/8418#M372</link>
      <description>Hi Everyone.&lt;BR /&gt;
in my example, how can I replace the +/- with 0.0.  &lt;BR /&gt;
&lt;BR /&gt;
data temp;&lt;BR /&gt;
  LENGTH  id  $20.  ;&lt;BR /&gt;
  input id $;&lt;BR /&gt;
datalines;&lt;BR /&gt;
3.5+2.4-2.49.8+2.3&lt;BR /&gt;
-0.2+3.4+-6.54.5-&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
thank you.</description>
      <pubDate>Thu, 19 Mar 2009 18:32:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Replacing-a-value-with-another/m-p/8418#M372</guid>
      <dc:creator>glodino</dc:creator>
      <dc:date>2009-03-19T18:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing a value with another</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Replacing-a-value-with-another/m-p/8419#M373</link>
      <description>It may be easier to post what data you would like to see represented as output.&lt;BR /&gt;
&lt;BR /&gt;
But, if I understand your question, you want to change occurences of "+" or "-" characters with a multi-character string "0.0" - yes or no?&lt;BR /&gt;
&lt;BR /&gt;
If YES, the TRANWRD function in a SAS DATA step can accomplish the task.  If NO, then please post a reply to the forum group with INPUT and OUTPUT data representations, along with an explanation to what you want accomplish.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 19 Mar 2009 21:16:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Replacing-a-value-with-another/m-p/8419#M373</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-03-19T21:16:01Z</dc:date>
    </item>
  </channel>
</rss>

