<?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 Importing Excel 2010 Sas Version Problem in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337165#M76528</link>
    <description>&lt;P&gt;I am trying to transfer a program that I wrote to another individual's machine&amp;nbsp;as I am leaving the company.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of the first steps in the&amp;nbsp;program is to import an Excel file,&amp;nbsp;Period.XLSX.&amp;nbsp; I use this code (and it has worked and still works for almost a year)&amp;nbsp;&lt;/P&gt;&lt;P&gt;However my co-worker can't get this code to work on his machine (we have worked for 1/2 day together to try to import this Excel file)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is my working CODE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/* Import Periods Lookup Table */&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT size="3" face="Courier New" color="#000080"&gt;import&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;datafile&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt; = &lt;/FONT&gt;&lt;FONT size="3" face="Courier New" color="#800080"&gt;"/sas/sasperm3_prod/RiskInfrastructure/Crill/QRM/Files/Import/Period.xlsx"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;out&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;= Days &lt;/FONT&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;dbms&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;= xlsx &lt;/FONT&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;replace&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;getnames&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;= yes;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;range&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;= &lt;/FONT&gt;&lt;FONT size="3" face="Courier New" color="#800080"&gt;'Days'&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;After much testing we have determined that this code fails on two other machines that have the&amp;nbsp;latest SAS version which appears to be the only difference between me and them.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;My Version is 7.1 HFI(7.100.0.2002)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;Their Version 7.2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;Their error message says that the period.xlsx is corrupt, but it is not.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;What is causing this? HELP&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;PS&amp;nbsp; He is able to import the file using the wizard.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MORE INFORMATION ADDED&lt;/STRONG&gt;:&amp;nbsp; The 7.2 User can import the Period.xlsx file successfully with my code if the Excel file sits in my personal directory without corruption but if we move the Excel file to his personal directory, it fails (corrupts).&amp;nbsp; I think this will give a key to the problem and answer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Mar 2017 00:10:25 GMT</pubDate>
    <dc:creator>Kody_devl</dc:creator>
    <dc:date>2017-03-02T00:10:25Z</dc:date>
    <item>
      <title>Importing Excel 2010 Sas Version Problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337165#M76528</link>
      <description>&lt;P&gt;I am trying to transfer a program that I wrote to another individual's machine&amp;nbsp;as I am leaving the company.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One of the first steps in the&amp;nbsp;program is to import an Excel file,&amp;nbsp;Period.XLSX.&amp;nbsp; I use this code (and it has worked and still works for almost a year)&amp;nbsp;&lt;/P&gt;&lt;P&gt;However my co-worker can't get this code to work on his machine (we have worked for 1/2 day together to try to import this Excel file)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is my working CODE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/* Import Periods Lookup Table */&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT size="3" face="Courier New" color="#000080"&gt;import&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;datafile&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt; = &lt;/FONT&gt;&lt;FONT size="3" face="Courier New" color="#800080"&gt;"/sas/sasperm3_prod/RiskInfrastructure/Crill/QRM/Files/Import/Period.xlsx"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;out&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;= Days &lt;/FONT&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;dbms&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;= xlsx &lt;/FONT&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;replace&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;getnames&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;= yes;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;range&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;= &lt;/FONT&gt;&lt;FONT size="3" face="Courier New" color="#800080"&gt;'Days'&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;After much testing we have determined that this code fails on two other machines that have the&amp;nbsp;latest SAS version which appears to be the only difference between me and them.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;My Version is 7.1 HFI(7.100.0.2002)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;Their Version 7.2&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;Their error message says that the period.xlsx is corrupt, but it is not.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;What is causing this? HELP&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;PS&amp;nbsp; He is able to import the file using the wizard.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MORE INFORMATION ADDED&lt;/STRONG&gt;:&amp;nbsp; The 7.2 User can import the Period.xlsx file successfully with my code if the Excel file sits in my personal directory without corruption but if we move the Excel file to his personal directory, it fails (corrupts).&amp;nbsp; I think this will give a key to the problem and answer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 00:10:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337165#M76528</guid>
      <dc:creator>Kody_devl</dc:creator>
      <dc:date>2017-03-02T00:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel 2010 Sas Version Problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337169#M76529</link>
      <description>&lt;P&gt;Is it possible that their machines or EG versions are 64-bit and your's is 32-bit, or visa-versa?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 22:50:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337169#M76529</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-03-01T22:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel 2010 Sas Version Problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337171#M76530</link>
      <description>&lt;P&gt;My machine is 64 bit and so is his machine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 22:53:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337171#M76530</guid>
      <dc:creator>Kody_devl</dc:creator>
      <dc:date>2017-03-01T22:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel 2010 Sas Version Problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337173#M76531</link>
      <description>&lt;P&gt;Are your EG versions both 64-bit?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 22:58:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337173#M76531</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-03-01T22:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel 2010 Sas Version Problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337176#M76533</link>
      <description>&lt;P&gt;I don't know about his but my SAS version says 32 bit and our admins say that it is OK to run 32 Bit SAS on a 64 bit machine.&amp;nbsp; I have had no problems.&amp;nbsp; I don't trust everything that they say.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 23:01:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337176#M76533</guid>
      <dc:creator>Kody_devl</dc:creator>
      <dc:date>2017-03-01T23:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel 2010 Sas Version Problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337180#M76534</link>
      <description>&lt;P&gt;Their being on 64-bit EG could be the problem. Another possibility: is there a chance that someone has the Excel file open when they try to import it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 23:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337180#M76534</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-03-01T23:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel 2010 Sas Version Problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337301#M76584</link>
      <description>&lt;P&gt;How do you move the file to his directory? Using UNIX cp?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 10:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337301#M76584</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-03-02T10:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel 2010 Sas Version Problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337305#M76586</link>
      <description>&lt;P&gt;Great question because we had suspicions here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use and FTP program called WIN SCP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 11:07:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337305#M76586</guid>
      <dc:creator>Kody_devl</dc:creator>
      <dc:date>2017-03-02T11:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel 2010 Sas Version Problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337314#M76587</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the SAS version shouldn't be a problem here, but the SAS modules installed could be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Run &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New"&gt;proc&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New"&gt;setinit&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New"&gt;;&lt;/FONT&gt; on both machines and check if you have SAS/ACCESS installed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the other machine does not have any SAS/ACCESS products licensed, then the only types of data source files available to you are .CSV, .TXT, and delimited files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 12:14:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337314#M76587</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2017-03-02T12:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel 2010 Sas Version Problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337315#M76588</link>
      <description>&lt;P&gt;Then make sure that you use "binary" as transfer method. Otherwise it might use text and scramble the file.&lt;/P&gt;
&lt;P&gt;IMO there should be no bitness problems when using dbms=xlsx, as SAS uses a built-in decoder/encoder for that (and not anything supplied by MS). And xlsx is zip-compressed xml, so basically compressed text.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 12:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-2010-Sas-Version-Problem/m-p/337315#M76588</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-03-02T12:13:50Z</dc:date>
    </item>
  </channel>
</rss>

