<?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: Removing currency symbol, replace missing with &amp;quot;NA&amp;quot; in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Removing-currency-symbol-replace-missing-with-quot-NA-quot/m-p/409032#M99911</link>
    <description>&lt;P&gt;"Community Matters" is for things concerning the working of this community, so i moved your post to Base SAS programming.&lt;/P&gt;
&lt;P&gt;Consider a better subject line, as I see nothing concerning R here.&lt;/P&gt;
&lt;P&gt;Please post an example of your csv data (use the {i} icon for posting text that must not be reformatted), and what you expect as data in a SAS dataset. NA is not a valid numerical value, but you might want to set zeroes to missing values in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: changed subject to the edited subject line of the original post.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Oct 2017 11:54:03 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-10-31T11:54:03Z</dc:date>
    <item>
      <title>Removing currency symbol, replace missing with "NA"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-currency-symbol-replace-missing-with-quot-NA-quot/m-p/409029#M99910</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I have a csv&amp;nbsp;file in which some columns( example column A) has $ value and column B has (0 value). How can i remove $ symbol for column A and convert the column B value to numeric(NA)&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 11:13:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-currency-symbol-replace-missing-with-quot-NA-quot/m-p/409029#M99910</guid>
      <dc:creator>sas_viclearner</dc:creator>
      <dc:date>2017-10-31T11:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Removing currency symbol, replace missing with "NA"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-currency-symbol-replace-missing-with-quot-NA-quot/m-p/409032#M99911</link>
      <description>&lt;P&gt;"Community Matters" is for things concerning the working of this community, so i moved your post to Base SAS programming.&lt;/P&gt;
&lt;P&gt;Consider a better subject line, as I see nothing concerning R here.&lt;/P&gt;
&lt;P&gt;Please post an example of your csv data (use the {i} icon for posting text that must not be reformatted), and what you expect as data in a SAS dataset. NA is not a valid numerical value, but you might want to set zeroes to missing values in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: changed subject to the edited subject line of the original post.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 11:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-currency-symbol-replace-missing-with-quot-NA-quot/m-p/409032#M99911</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-10-31T11:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: r coding for sas project</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-currency-symbol-replace-missing-with-quot-NA-quot/m-p/409033#M99912</link>
      <description>&lt;P&gt;Your post is unclear.&amp;nbsp; Where does the R from the subject title come in?&lt;/P&gt;
&lt;P&gt;To get rid of $ just do:&lt;/P&gt;
&lt;PRE&gt;a=compress(a,"$");
&lt;/PRE&gt;
&lt;P&gt;For b, not sure what you mean, NA is not a numeric, nor could be a numeric.&amp;nbsp; You can fool it by using a format:&lt;/P&gt;
&lt;PRE&gt;proc format;
   value temp
      0="NA";
run;&lt;/PRE&gt;
&lt;P&gt;And apply that to the number, however the number will still be 0 behind the scenes.&amp;nbsp; Always a good idea to post test data and required output in your questions to illustrate problems, and post what code you have.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 09:56:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-currency-symbol-replace-missing-with-quot-NA-quot/m-p/409033#M99912</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-10-31T09:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Removing currency symbol, replace missing with "NA"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-currency-symbol-replace-missing-with-quot-NA-quot/m-p/409047#M99915</link>
      <description>&lt;P&gt;In the diagram&amp;nbsp; Columns A,B,C, D has $ symbol for currency, i need to get rid of them. And some of the values are missing which are shown as blank, i need to replace those blank with NA not a numeric&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="R SAS.JPG" style="width: 367px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16348iB7DA4446D64E2EBE/image-size/large?v=v2&amp;amp;px=999" role="button" title="R SAS.JPG" alt="R SAS.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit [KB]: adapted the subject line.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 11:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-currency-symbol-replace-missing-with-quot-NA-quot/m-p/409047#M99915</guid>
      <dc:creator>sas_viclearner</dc:creator>
      <dc:date>2017-10-31T11:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Removing currency symbol, replace missing with "NA"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-currency-symbol-replace-missing-with-quot-NA-quot/m-p/409070#M99919</link>
      <description>&lt;P&gt;Read (or convert) with the DOLLARw.d informat:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards truncover;
input inval $;
cards;
$17.00
 
$20.23
;
run;

data want;
set have;
outval = input(inval,dollar10.);
format outval dollar10.2;
run;

proc print data=want noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;inval         outval

$17.00        $17.00
                 .  
$20.23        $20.23
&lt;/PRE&gt;
&lt;P&gt;You can see how the empty value results in a missing numeric SAS value, which is the correct way to handle this.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 11:59:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-currency-symbol-replace-missing-with-quot-NA-quot/m-p/409070#M99919</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-10-31T11:59:26Z</dc:date>
    </item>
  </channel>
</rss>

