<?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: Change variable from character to numeric after XLSx import in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Change-variable-from-character-to-numeric-after-XLSx-import/m-p/522103#M141697</link>
    <description>&lt;P&gt;thanks again! after i corrected those cells the import worked and all numeric variables were classified as numeric.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Dec 2018 03:12:02 GMT</pubDate>
    <dc:creator>amigapomba</dc:creator>
    <dc:date>2018-12-18T03:12:02Z</dc:date>
    <item>
      <title>Change variable from character to numeric after XLSx import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-variable-from-character-to-numeric-after-XLSx-import/m-p/522084#M141690</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm imported an XLSx file into SAS University edition. For some reason three of the numeric variables have been classified by SAS as character variables, even though no observations include any characters. Can anyone tell me how to correct this?&lt;/P&gt;&lt;P&gt;Here is my import code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC IMPORT DATAFILE="/folders/myfolders/Med.xlsx"&lt;BR /&gt;OUT=WORK.med2&lt;BR /&gt;DBMS=XLSX&lt;BR /&gt;REPLACE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA for any help!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 01:31:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-variable-from-character-to-numeric-after-XLSx-import/m-p/522084#M141690</guid>
      <dc:creator>amigapomba</dc:creator>
      <dc:date>2018-12-18T01:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change variable from character to numeric after XLSx import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-variable-from-character-to-numeric-after-XLSx-import/m-p/522089#M141692</link>
      <description>Check the type in the Excel file. There isn't really a good way to control the import from an Excel file, the usual workaround suggestions are to create a CSV file instead and import that, it allows you to have full control. It's really rare to have a full column of just numbers be imported as characters though. How is missing denoted in that file?</description>
      <pubDate>Tue, 18 Dec 2018 01:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-variable-from-character-to-numeric-after-XLSx-import/m-p/522089#M141692</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-12-18T01:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Change variable from character to numeric after XLSx import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-variable-from-character-to-numeric-after-XLSx-import/m-p/522097#M141693</link>
      <description>&lt;P&gt;try ：&lt;/P&gt;&lt;P&gt;mixed=yes&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 02:15:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-variable-from-character-to-numeric-after-XLSx-import/m-p/522097#M141693</guid>
      <dc:creator>learsaas</dc:creator>
      <dc:date>2018-12-18T02:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Change variable from character to numeric after XLSx import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-variable-from-character-to-numeric-after-XLSx-import/m-p/522098#M141694</link>
      <description>&lt;P&gt;Hi thanks very much for your help-&lt;/P&gt;&lt;P&gt;I looked closer at the entries for those variables in excel and saw that they&amp;nbsp;each have one or two that were somehow entered as text. I will try to change them to numbers and repeat the import. Missing data in the Excel file are blank cells, for those three variables as well as for the seven other variables that sas correctly labeled as numeric.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 02:20:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-variable-from-character-to-numeric-after-XLSx-import/m-p/522098#M141694</guid>
      <dc:creator>amigapomba</dc:creator>
      <dc:date>2018-12-18T02:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Change variable from character to numeric after XLSx import</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Change-variable-from-character-to-numeric-after-XLSx-import/m-p/522103#M141697</link>
      <description>&lt;P&gt;thanks again! after i corrected those cells the import worked and all numeric variables were classified as numeric.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 03:12:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Change-variable-from-character-to-numeric-after-XLSx-import/m-p/522103#M141697</guid>
      <dc:creator>amigapomba</dc:creator>
      <dc:date>2018-12-18T03:12:02Z</dc:date>
    </item>
  </channel>
</rss>

