<?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: Import XLSX file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-XLSX-file/m-p/423549#M104174</link>
    <description>&lt;P&gt;Excel keeps track of all cells that have been manipulated at least once, and computes a virtual "sheet size" from that.&lt;/P&gt;
&lt;P&gt;Delete all empty columns and rows up to where your import "ended", before you try the import again. That deletion will remove the "used" information from the cells.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, save to csv from Excel and use a custom data step to only read the columns you want.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Dec 2017 08:50:19 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-12-26T08:50:19Z</dc:date>
    <item>
      <title>Import XLSX file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-XLSX-file/m-p/423542#M104170</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I got a problem in importing excel file (.xlsx);&lt;/P&gt;&lt;P&gt;I have tried with porc import&lt;/P&gt;&lt;P&gt;here's the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc import datafile = " D:\myfolder\sample.&lt;/STRONG&gt;xlsx&lt;STRONG&gt;" &lt;/STRONG&gt;dbms&lt;STRONG&gt; = excel out = output;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sheet = sheet1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by running this code sheet has been imported, but problem is, actually my sheet contains 12 variables, but SAS imported 24 columns in which 12 were empty coulmns and also after running this code I have'nt&amp;nbsp;found any infile/input code in log; so, what might be the reason for this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want&amp;nbsp;infile/input code to import excel file, please can someone write&amp;nbsp;infile code to improt excel file !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards and Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 17:21:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-XLSX-file/m-p/423542#M104170</guid>
      <dc:creator>s_manoj</dc:creator>
      <dc:date>2017-12-26T17:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Import XLSX file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-XLSX-file/m-p/423549#M104174</link>
      <description>&lt;P&gt;Excel keeps track of all cells that have been manipulated at least once, and computes a virtual "sheet size" from that.&lt;/P&gt;
&lt;P&gt;Delete all empty columns and rows up to where your import "ended", before you try the import again. That deletion will remove the "used" information from the cells.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, save to csv from Excel and use a custom data step to only read the columns you want.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 08:50:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-XLSX-file/m-p/423549#M104174</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-12-26T08:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Import XLSX file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-XLSX-file/m-p/423598#M104189</link>
      <description>&lt;P&gt;If SAS created 24 variables then the XLSX sheet had 24 "used" columns.&amp;nbsp; Best fix for that it is to update the XLSX file.&amp;nbsp; But it is also easy to DROP the variables from your SAS dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure what you are talking about the LOG, but you will not see an INFILE statement used to read a structured binary file like an XLSX file like you would for reading a simple delimited text file like a CSV file.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 15:38:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-XLSX-file/m-p/423598#M104189</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-12-26T15:38:57Z</dc:date>
    </item>
  </channel>
</rss>

