<?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: replacing obs or converting arrays from char to numeric in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/replacing-obs-or-converting-arrays-from-char-to-numeric/m-p/470987#M120583</link>
    <description>&lt;P&gt;Save the spreadsheet to a text (eg csv) file, import that, then take the data step found in the SAS log and adapt the variables in question to your needs.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jun 2018 07:47:49 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-06-18T07:47:49Z</dc:date>
    <item>
      <title>replacing obs or converting arrays from char to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replacing-obs-or-converting-arrays-from-char-to-numeric/m-p/470985#M120581</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I am importing a file into SAS the variable are being converted&amp;nbsp;from&amp;nbsp;numeric to character....This is probably because missing observations are represented with&amp;nbsp; "." .Is there anyway I can replace "." with a " " (that is a blank value). I know this can be simply done in excel but excel is also removing "'." from my numeric data set that is replacing :e.g 3.2756 to 32756. Any suggestions how to handle it? Please note that I have more than 6000 variables in my data set.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 07:39:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replacing-obs-or-converting-arrays-from-char-to-numeric/m-p/470985#M120581</guid>
      <dc:creator>Amalik</dc:creator>
      <dc:date>2018-06-18T07:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: replacing obs or converting arrays from char to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replacing-obs-or-converting-arrays-from-char-to-numeric/m-p/470987#M120583</link>
      <description>&lt;P&gt;Save the spreadsheet to a text (eg csv) file, import that, then take the data step found in the SAS log and adapt the variables in question to your needs.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 07:47:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replacing-obs-or-converting-arrays-from-char-to-numeric/m-p/470987#M120583</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-18T07:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: replacing obs or converting arrays from char to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replacing-obs-or-converting-arrays-from-char-to-numeric/m-p/470990#M120586</link>
      <description>&lt;P&gt;Right, I am just looking into my crystal ball, and yes, now I see your data and your process!&amp;nbsp; How are you importing the data, is it Excel by any chance.&amp;nbsp; That is often the cause of bad data, consider moving to a proper data format like CSV, or XML, and writing a proper import step to import the data correctly.&amp;nbsp; This "&lt;SPAN&gt;This is probably because missing observations are represented with&amp;nbsp; "."" should not matter, as SAS treats . as numeric, unless of course your using proc import or Excel (or even worse, both).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"&amp;nbsp;I know this can be simply done in excel but excel is also removing "'." from my numeric data set that is replacing :e.g 3.2756 to 32756." - what does this mean?&amp;nbsp; What is the datafile you have, what format.&amp;nbsp; Opening in Excel does not help anyone, Excel has "functionality" which hides real data and shows it how it thinks you want to see it.&amp;nbsp; Try posting some test data in the form of a text file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"Please note that I have more than 6000 variables" - that is a lot, anything more than a couple of hundred is a lot and will be a real pain to try to work with.&amp;nbsp; First step for me would be to remodel the data into a workable format (i.e. normalise it all down to a few variables and lots of observations.)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 07:57:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replacing-obs-or-converting-arrays-from-char-to-numeric/m-p/470990#M120586</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-06-18T07:57:11Z</dc:date>
    </item>
  </channel>
</rss>

