<?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: wired problem of import an excel file in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/wired-problem-of-import-an-excel-file/m-p/127909#M34963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;If you do want this variable to be a character variable you can use the following option within your PROC IMPORT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBDSOPTS= "DBSASTYPE=(%_of_value='Char(4)')";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When running this you may also want to change the MIXED option from YES to NO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 May 2013 18:39:04 GMT</pubDate>
    <dc:creator>JRTait</dc:creator>
    <dc:date>2013-05-01T18:39:04Z</dc:date>
    <item>
      <title>wired problem of import an excel file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/wired-problem-of-import-an-excel-file/m-p/127907#M34961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a excel file with one column,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to import it into SAS and get an character variable,I attached the excel file.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My problem is&lt;/STRONG&gt; : if I opended the excel file then run the SAS code, the variable will be like 0.745 for the first obs ,&lt;STRONG&gt;but&lt;/STRONG&gt; if I close the excel file then run the SAS code ,the value of the first obs will be changed to 74.5%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help me point out the reason of the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC IMPORT&lt;/P&gt;&lt;P&gt;OUT= _test2&lt;/P&gt;&lt;P&gt;datafile="c:\temp\oops.xls"&lt;/P&gt;&lt;P&gt;DBMS=EXCEL REPLACE;&lt;/P&gt;&lt;P&gt;GETNAMES=YES;&lt;/P&gt;&lt;P&gt;MIXED=YES;&lt;/P&gt;&lt;P&gt;USEDATE=YES;&lt;/P&gt;&lt;P&gt;SCANTIME=YES;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 19:30:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/wired-problem-of-import-an-excel-file/m-p/127907#M34961</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-09-21T19:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: wired problem of import an excel file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/wired-problem-of-import-an-excel-file/m-p/127908#M34962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;delete the first two blank rows so PROC IMPORT will work as intended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data in the spreadsheet are actually numeric with a format applied by Excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 14:29:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/wired-problem-of-import-an-excel-file/m-p/127908#M34962</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-09-24T14:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: wired problem of import an excel file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/wired-problem-of-import-an-excel-file/m-p/127909#M34963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;If you do want this variable to be a character variable you can use the following option within your PROC IMPORT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBDSOPTS= "DBSASTYPE=(%_of_value='Char(4)')";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When running this you may also want to change the MIXED option from YES to NO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 18:39:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/wired-problem-of-import-an-excel-file/m-p/127909#M34963</guid>
      <dc:creator>JRTait</dc:creator>
      <dc:date>2013-05-01T18:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: wired problem of import an excel file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/wired-problem-of-import-an-excel-file/m-p/127910#M34964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting , If you use another engine XLS ,you will different result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC IMPORT&lt;/P&gt;&lt;P&gt;OUT= _test2&lt;/P&gt;&lt;P&gt;datafile="c:\temp\oops.xls"&lt;/P&gt;&lt;P&gt;DBMS=xls REPLACE;&lt;/P&gt;&lt;P&gt;GETNAMES=YES;&lt;/P&gt;&lt;P&gt;MIXED=YES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 02:14:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/wired-problem-of-import-an-excel-file/m-p/127910#M34964</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2013-05-02T02:14:57Z</dc:date>
    </item>
  </channel>
</rss>

