<?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: How to Import Excel 2010 worksheet (.xlsx) that has more than 255 columns into SAS 9.4 in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-Import-Excel-2010-worksheet-xlsx-that-has-more-than-255/m-p/251118#M6743</link>
    <description>&lt;P&gt;The excel file is downloaded from datastream database.&lt;/P&gt;&lt;P&gt;I have to deal with those files into one sas file.&lt;/P&gt;&lt;P&gt;The line 4 RANGE="工作表1$"; &amp;nbsp;==&amp;gt;&amp;nbsp;&lt;SPAN&gt;RANGE="Sheet1$";&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Feb 2016 13:55:27 GMT</pubDate>
    <dc:creator>hungling108</dc:creator>
    <dc:date>2016-02-19T13:55:27Z</dc:date>
    <item>
      <title>How to Import Excel 2010 worksheet (.xlsx) that has more than 255 columns into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-Import-Excel-2010-worksheet-xlsx-that-has-more-than-255/m-p/251111#M6741</link>
      <description>&lt;P&gt;1 PROC IMPORT OUT= WORK.b1&lt;BR /&gt;2 DATAFILE= "D:\Pap10501_CGMA\test\dRI1.xlsx"&lt;BR /&gt;3 DBMS=EXCEL REPLACE;&lt;BR /&gt;4 RANGE="Sheet1$";&lt;BR /&gt;5 GETNAMES=NO;&lt;BR /&gt;6 MIXED=NO;&lt;BR /&gt;7 SCANTEXT=YES;&lt;BR /&gt;8 USEDATE=YES;&lt;BR /&gt;9 SCANTIME=YES;&lt;BR /&gt;10 RUN;&lt;/P&gt;&lt;P&gt;NOTE: create WORK.B1 dataset。&lt;BR /&gt;NOTE: dataset WORK.B1 has 3693 observations and 255 variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Actually, excel file has 2000 columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 13:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-Import-Excel-2010-worksheet-xlsx-that-has-more-than-255/m-p/251111#M6741</guid>
      <dc:creator>hungling108</dc:creator>
      <dc:date>2016-02-19T13:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to Import Excel 2010 worksheet (.xlsx) that has more than 255 columns into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-Import-Excel-2010-worksheet-xlsx-that-has-more-than-255/m-p/251112#M6742</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry what does this mean:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4 RANGE="工作表1$";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A range options specifies which cell range to use for import, its likely you just nee to update that. &amp;nbsp;However that being said, you would probably be better off saving the XLSX as CSV, and then writing a datastep import, as you then have much more control over it. &amp;nbsp;I.e.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;data imported_data;
  infile "&amp;lt;your_csv&amp;gt;.csv";
  informat col1 ...;
  format col1 ...;    
  input  col1 $
           col2 
           col3 $
...;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Howevet that being said, why do you have a spreadsheet with 2000 columns? &amp;nbsp;Nobody is ever going to review that amount of information, assess where the data has come from, and wether you can get the data in a better format than that, i.e. if it came from a database, export from the database a normalised data structure directly to CSV.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 13:42:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-Import-Excel-2010-worksheet-xlsx-that-has-more-than-255/m-p/251112#M6742</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-02-19T13:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Import Excel 2010 worksheet (.xlsx) that has more than 255 columns into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-Import-Excel-2010-worksheet-xlsx-that-has-more-than-255/m-p/251118#M6743</link>
      <description>&lt;P&gt;The excel file is downloaded from datastream database.&lt;/P&gt;&lt;P&gt;I have to deal with those files into one sas file.&lt;/P&gt;&lt;P&gt;The line 4 RANGE="工作表1$"; &amp;nbsp;==&amp;gt;&amp;nbsp;&lt;SPAN&gt;RANGE="Sheet1$";&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 13:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-Import-Excel-2010-worksheet-xlsx-that-has-more-than-255/m-p/251118#M6743</guid>
      <dc:creator>hungling108</dc:creator>
      <dc:date>2016-02-19T13:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Import Excel 2010 worksheet (.xlsx) that has more than 255 columns into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-Import-Excel-2010-worksheet-xlsx-that-has-more-than-255/m-p/251119#M6744</link>
      <description>&lt;P&gt;Try adding dbms=excel to your code.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Importing-a-xlsx-file-into-SAS/td-p/113434" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Importing-a-xlsx-file-into-SAS/td-p/113434&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 13:58:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-Import-Excel-2010-worksheet-xlsx-that-has-more-than-255/m-p/251119#M6744</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-02-19T13:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Import Excel 2010 worksheet (.xlsx) that has more than 255 columns into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-Import-Excel-2010-worksheet-xlsx-that-has-more-than-255/m-p/251120#M6745</link>
      <description>&lt;P&gt;Then take Excel out of it altogether. Unload from the database into a sensible, character-based format, and import that into SAS.&lt;/P&gt;
&lt;P&gt;Excel is a format for &lt;U&gt;spreadsheets&lt;/U&gt;, not for database data.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 13:58:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-Import-Excel-2010-worksheet-xlsx-that-has-more-than-255/m-p/251120#M6745</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-02-19T13:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Import Excel 2010 worksheet (.xlsx) that has more than 255 columns into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-Import-Excel-2010-worksheet-xlsx-that-has-more-than-255/m-p/251121#M6746</link>
      <description>I do it in line 3.</description>
      <pubDate>Fri, 19 Feb 2016 14:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-Import-Excel-2010-worksheet-xlsx-that-has-more-than-255/m-p/251121#M6746</guid>
      <dc:creator>hungling108</dc:creator>
      <dc:date>2016-02-19T14:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to Import Excel 2010 worksheet (.xlsx) that has more than 255 columns into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-Import-Excel-2010-worksheet-xlsx-that-has-more-than-255/m-p/251132#M6747</link>
      <description>Try using DBMS=XLSX instead of DBMS=EXCEL.  That will tell SAS to use a non-microsoft method to read the XLSX file.</description>
      <pubDate>Fri, 19 Feb 2016 14:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-Import-Excel-2010-worksheet-xlsx-that-has-more-than-255/m-p/251132#M6747</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-02-19T14:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to Import Excel 2010 worksheet (.xlsx) that has more than 255 columns into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-Import-Excel-2010-worksheet-xlsx-that-has-more-than-255/m-p/251321#M6756</link>
      <description>&lt;P&gt;Thanka for everyone reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following code&amp;nbsp;is successful for importing Excel (.xlsx) into SAS 9.4.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DBMS=XLSX;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;==&amp;gt;&amp;nbsp;The import data set has 70167 observations and 2001 variables.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2016 05:23:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-Import-Excel-2010-worksheet-xlsx-that-has-more-than-255/m-p/251321#M6756</guid>
      <dc:creator>hungling108</dc:creator>
      <dc:date>2016-02-20T05:23:33Z</dc:date>
    </item>
  </channel>
</rss>

