<?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: Errors in PROC IMPORT of Excel files in SAS EG in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Errors-in-PROC-IMPORT-of-Excel-files-in-SAS-EG/m-p/255374#M17917</link>
    <description>&lt;P&gt;Guessingrows only applies to text type file formats such as CSV.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on version of SAS EG the MIXED option doesn't work with later versions of Excel 2007 or later.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2016 21:41:06 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-03-08T21:41:06Z</dc:date>
    <item>
      <title>Errors in PROC IMPORT of Excel files in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Errors-in-PROC-IMPORT-of-Excel-files-in-SAS-EG/m-p/255367#M17916</link>
      <description>&lt;P&gt;When I use PROC IMPORT to import Excel files, I got the errors as shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;import&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;out&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; = Variable&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datafile&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;inputPath./&amp;amp;varfile."&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DBMS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=XLSX &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;REPLACE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;GETNAMES&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=yes; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;/* DATAROW = 2; */&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;GUESSINGROWS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;500&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;MIXED&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;=YES;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS LOG:&lt;/P&gt;&lt;P&gt;23 proc import&lt;/P&gt;&lt;P&gt;24 out = Variable&lt;/P&gt;&lt;P&gt;25 datafile = "&amp;amp;inputPath./&amp;amp;varfile."&lt;/P&gt;&lt;P&gt;26 DBMS=XLSX REPLACE;&lt;/P&gt;&lt;P&gt;NOTE: The previous statement has been deleted.&lt;/P&gt;&lt;P&gt;NOTE: The previous statement has been deleted.&lt;/P&gt;&lt;P&gt;27 GETNAMES=yes;&lt;/P&gt;&lt;P&gt;28 /* DATAROW = 2; */&lt;/P&gt;&lt;P&gt;29 GUESSINGROWS=500;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;____________&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;180&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;30 MIXED=YES;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;_____&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;180&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;31 run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code works fine in PC SAS, but the error keeps coming out when I run this code in SAS EG. If I comment out thoes two options "GUESSINGROWS=" and "MIXED=", then there is no errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone has any idea what causes this error and how to solve this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 21:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Errors-in-PROC-IMPORT-of-Excel-files-in-SAS-EG/m-p/255367#M17916</guid>
      <dc:creator>Meng_Xu</dc:creator>
      <dc:date>2016-03-08T21:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in PROC IMPORT of Excel files in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Errors-in-PROC-IMPORT-of-Excel-files-in-SAS-EG/m-p/255374#M17917</link>
      <description>&lt;P&gt;Guessingrows only applies to text type file formats such as CSV.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on version of SAS EG the MIXED option doesn't work with later versions of Excel 2007 or later.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 21:41:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Errors-in-PROC-IMPORT-of-Excel-files-in-SAS-EG/m-p/255374#M17917</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-08T21:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Errors in PROC IMPORT of Excel files in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Errors-in-PROC-IMPORT-of-Excel-files-in-SAS-EG/m-p/255465#M17922</link>
      <description>&lt;P&gt;Are you executing the &lt;EM&gt;exact&lt;/EM&gt; same code in PC SAS and EG?&lt;/P&gt;
&lt;P&gt;Version of PC SAS?&lt;/P&gt;
&lt;P&gt;Do you access the same PC SAS from EG, or do you use a WorkSpace Server (host and SAS version?)&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 09:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Errors-in-PROC-IMPORT-of-Excel-files-in-SAS-EG/m-p/255465#M17922</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-03-09T09:05:30Z</dc:date>
    </item>
  </channel>
</rss>

