<?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: I am trying to use proc import to read in an xlsx. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-use-proc-import-to-read-in-an-xlsx/m-p/288379#M59464</link>
    <description>Duplicate post.</description>
    <pubDate>Sun, 31 Jul 2016 08:31:07 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-07-31T08:31:07Z</dc:date>
    <item>
      <title>I am trying to use proc import to read in an xlsx.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-use-proc-import-to-read-in-an-xlsx/m-p/288377#M59457</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to use proc import to read in an xlsx.&lt;/P&gt;
&lt;P&gt;I need it to not read in create any variable without a variable name in row 1. &amp;nbsp;as attached here, it&amp;nbsp;created a huge&amp;nbsp;number of variables on the right without header names, starting with AP, this is causing a lot of problem for me&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;many thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jul 2016 08:07:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-use-proc-import-to-read-in-an-xlsx/m-p/288377#M59457</guid>
      <dc:creator>rykwong</dc:creator>
      <dc:date>2016-07-31T08:07:34Z</dc:date>
    </item>
    <item>
      <title>I am trying to use proc import to read in an xlsx.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-use-proc-import-to-read-in-an-xlsx/m-p/288376#M59463</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to use proc import to read in an xlsx.&lt;/P&gt;
&lt;P&gt;I need it to not read in create any variable without a variable name in row 1. &amp;nbsp;as attached here, it&amp;nbsp;created a huge&amp;nbsp;number of variables on the right without header names, starting with AP, this is causing a lot of problem for me&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;many thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jul 2016 08:07:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-use-proc-import-to-read-in-an-xlsx/m-p/288376#M59463</guid>
      <dc:creator>rykwong</dc:creator>
      <dc:date>2016-07-31T08:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to use proc import to read in an xlsx.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-use-proc-import-to-read-in-an-xlsx/m-p/288378#M59458</link>
      <description>Please don't attach Excel files. A screenshot will explain the situation as good.</description>
      <pubDate>Sun, 31 Jul 2016 08:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-use-proc-import-to-read-in-an-xlsx/m-p/288378#M59458</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-07-31T08:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to use proc import to read in an xlsx.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-use-proc-import-to-read-in-an-xlsx/m-p/288379#M59464</link>
      <description>Duplicate post.</description>
      <pubDate>Sun, 31 Jul 2016 08:31:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-use-proc-import-to-read-in-an-xlsx/m-p/288379#M59464</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-07-31T08:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to use proc import to read in an xlsx.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-use-proc-import-to-read-in-an-xlsx/m-p/288485#M59502</link>
      <description>&lt;P&gt;Excel is not a good data transfer tool, you will find many problems with it. &amp;nbsp;You have hit one of them. &amp;nbsp;Excel can have a lot of properties/hidden things on cells. &amp;nbsp;What is likely to have happened is someone has applied a format, or styling to all columns, therefore Excel assumes the working range is all columns. &amp;nbsp;Thus when SAS imports the file, it checks the working area and imports all columns specified in the working range. &amp;nbsp;To get round it, select the column aftet the last column of data, then select all rows to the right of that as well (CNTRL + Shift + Right arrow), then right click on that and select delete.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, and far better (more robust, easy to re-produce, safer etc.) is to get the file in a proper data transfer file format, delimited file, XML etc. &amp;nbsp;If you got a CSV, you would then write a datastep program which specified each variable to be read in, how its to be read in, what format/length, any other processing. &amp;nbsp;Far more control and accuracy than some dodgy Excel file being read in by a guessing procedure.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 09:01:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-use-proc-import-to-read-in-an-xlsx/m-p/288485#M59502</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-08-01T09:01:47Z</dc:date>
    </item>
  </channel>
</rss>

