<?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 SAS Import xlsx file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Import-xlsx-file/m-p/315386#M68776</link>
    <description>&lt;P&gt;I tried to import the attached xlsx file; in the HOLNO column, most of the data were imported except the last row which is in character format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to import the HOLNO column as character format wihout modifying the excel file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone can help? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;PROC IMPORT DATAFILE="D:\Book1.xlsx"&lt;BR /&gt;dbms=excel replace out=mydata;&lt;BR /&gt;GETNAMES=yes;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2016 01:15:06 GMT</pubDate>
    <dc:creator>scb</dc:creator>
    <dc:date>2016-11-30T01:15:06Z</dc:date>
    <item>
      <title>SAS Import xlsx file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Import-xlsx-file/m-p/315386#M68776</link>
      <description>&lt;P&gt;I tried to import the attached xlsx file; in the HOLNO column, most of the data were imported except the last row which is in character format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to import the HOLNO column as character format wihout modifying the excel file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone can help? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;PROC IMPORT DATAFILE="D:\Book1.xlsx"&lt;BR /&gt;dbms=excel replace out=mydata;&lt;BR /&gt;GETNAMES=yes;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 01:15:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Import-xlsx-file/m-p/315386#M68776</guid>
      <dc:creator>scb</dc:creator>
      <dc:date>2016-11-30T01:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Import xlsx file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Import-xlsx-file/m-p/315392#M68780</link>
      <description>Please try mixed = yes option &lt;BR /&gt;&lt;BR /&gt;PROC IMPORT DATAFILE="D:\Book1.xlsx"&lt;BR /&gt;dbms=excel replace out=mydata;&lt;BR /&gt;GETNAMES=yes;&lt;BR /&gt;MIXED=yes;&lt;BR /&gt;RUN;</description>
      <pubDate>Wed, 30 Nov 2016 03:18:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Import-xlsx-file/m-p/315392#M68780</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2016-11-30T03:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Import xlsx file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Import-xlsx-file/m-p/315423#M68796</link>
      <description>&lt;P&gt;I have tried but still got the same answer.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 06:38:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Import-xlsx-file/m-p/315423#M68796</guid>
      <dc:creator>scb</dc:creator>
      <dc:date>2016-11-30T06:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Import xlsx file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Import-xlsx-file/m-p/315433#M68801</link>
      <description>&lt;P&gt;Export to a csv file from Excel and write a data step to read that; that way you have full control over the variables and are not subject to the idiosyncrasies of the Excel file format and the guessing of proc import.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 08:13:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Import-xlsx-file/m-p/315433#M68801</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-30T08:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Import xlsx file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Import-xlsx-file/m-p/315451#M68814</link>
      <description>&lt;PRE&gt;

Add MIXED='yes' ;  option

Or not sure if the following could work.

libname xx excel "/folders/myfolders/Book1.xlsx";
data have;
set xx.'Sheet1'n(dbsastype=(holno='char(100)'));
RUN;

&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Nov 2016 09:46:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Import-xlsx-file/m-p/315451#M68814</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-11-30T09:46:43Z</dc:date>
    </item>
  </channel>
</rss>

