<?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: Proc Export dbms=xlsx Column Limit in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82161#M23645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You shouldn't have that error anyways with 26 columns, how many rows do you have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to start PC Files Server - &lt;A href="http://support.sas.com/kb/43/802.html" title="http://support.sas.com/kb/43/802.html"&gt;43802 - Installing SAS® 9.3 PC Files Server and using it to convert 32-bit Microsoft Office files to SAS® 64-bit files&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jan 2013 17:32:42 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2013-01-22T17:32:42Z</dc:date>
    <item>
      <title>Proc Export dbms=xlsx Column Limit</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82156#M23640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I run this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc export&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; dbms=xlsx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; outfile="/adir/afile.xlsx"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; data=mydata&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; replace;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;everything works fine as long as I only have 26 columns to produce. As soon as a I add one more column I get an error when trying to open the file. The log is clean however.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The excel error is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exel found unreadable conent in 'afile.xlsx'. Do you want to recover the contents of this workbook? If you trust the source of thie workbook, click Yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I click "Yes" and I get this message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Removed Records: Cell information from /xl/worksheets/sheet1.xml part&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think all of the data is in the file and the first row, which is just the column labels, is written correctly, but the rest of the data is only written in columns names that end in 'A' (ie AA, BA, CA).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 16:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82156#M23640</guid>
      <dc:creator>Deryl</dc:creator>
      <dc:date>2013-01-22T16:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export dbms=xlsx Column Limit</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82157#M23641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try your code, using &lt;STRONG&gt;dbms = xlsx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I get this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: XLSX is not yet supported by proc export&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try changing it to "&lt;STRONG&gt;dbms = EXCEL";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anca.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 17:06:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82157#M23641</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2013-01-22T17:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export dbms=xlsx Column Limit</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82158#M23642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the response Anca.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interestingly enough, I get this error when I swiched to excel:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: DBMS type EXCEL not valid for export.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use dbms=xlsx I do not get an error and the files are created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2012/01/25/export-to-excel-got-easier/"&gt;Here's&lt;/A&gt; a link to the where I read about using dbms=xlsx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 17:18:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82158#M23642</guid>
      <dc:creator>Deryl</dc:creator>
      <dc:date>2013-01-22T17:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export dbms=xlsx Column Limit</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82159#M23643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try ExcelCS as engine if you're on 9.3 or higher&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 17:20:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82159#M23643</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-01-22T17:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export dbms=xlsx Column Limit</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82160#M23644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm on 9.3 (TS1M1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not too familiar with excelcs. When I used dbms=excelcs I get this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Server Name is invalid or missing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 17:28:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82160#M23644</guid>
      <dc:creator>Deryl</dc:creator>
      <dc:date>2013-01-22T17:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export dbms=xlsx Column Limit</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82161#M23645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You shouldn't have that error anyways with 26 columns, how many rows do you have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to start PC Files Server - &lt;A href="http://support.sas.com/kb/43/802.html" title="http://support.sas.com/kb/43/802.html"&gt;43802 - Installing SAS® 9.3 PC Files Server and using it to convert 32-bit Microsoft Office files to SAS® 64-bit files&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 17:32:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82161#M23645</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-01-22T17:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export dbms=xlsx Column Limit</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82162#M23646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With dbms=xlsx I don't have any errors until I get to 27 columns. 26 works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The server is out of my control. Starting a PC file server is not an option for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 17:41:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82162#M23646</guid>
      <dc:creator>Deryl</dc:creator>
      <dc:date>2013-01-22T17:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export dbms=xlsx Column Limit</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82163#M23647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its named badly...its not a server as such, its more of a feature if anything. &lt;/P&gt;&lt;P&gt;But I totally understand if that's not an option as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it a specific 27th column or any 27th column that causes the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 17:56:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82163#M23647</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-01-22T17:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export dbms=xlsx Column Limit</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82164#M23648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's any 27th column. Even just doing this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro make_data;&lt;BR /&gt;data my_data;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; %do i=1 %to 27;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var&amp;amp;i = &amp;amp;i;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; %end;&lt;BR /&gt;run;&lt;BR /&gt;%mend;&lt;BR /&gt;%make_data;&lt;/P&gt;&lt;P&gt;proc export&lt;BR /&gt; dbms=xlsx&lt;BR /&gt; outfile="/adir/my_file.xlsx"&lt;BR /&gt; data=my_data&lt;BR /&gt; replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change it to "%to 26" and there is no issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 18:11:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82164#M23648</guid>
      <dc:creator>Deryl</dc:creator>
      <dc:date>2013-01-22T18:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export dbms=xlsx Column Limit</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82165#M23649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This code works fine for me (I had to chance xlsx to EXCEL);&lt;/P&gt;&lt;P&gt;%macro make_data;&lt;/P&gt;&lt;P&gt;data my_data;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %do i=1 &lt;STRONG&gt;%to 27;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var&amp;amp;i = &amp;amp;i;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;%make_data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc export&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dbms=excel&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;outfile="\\&amp;amp;path.\my_file.xlsx"&lt;/P&gt;&lt;P&gt;data=my_data&lt;/P&gt;&lt;P&gt;replace;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 18:41:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82165#M23649</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2013-01-22T18:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export dbms=xlsx Column Limit</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82166#M23650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since excel isn't an option for me, maybe I'm out of luck. Is this a known limitation for xlsx?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 18:49:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82166#M23650</guid>
      <dc:creator>Deryl</dc:creator>
      <dc:date>2013-01-22T18:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export dbms=xlsx Column Limit</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82167#M23651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Talk to Tech Support, this isn't something that should happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting the same error in Excel 201 and SAS 9.2 but not with 26 columns so I don't know what causes it. And they need to fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently that is the case is 9.3 M1 and earlier, the limit is actually 25 columns:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/40/383.html" title="http://support.sas.com/kb/40/383.html"&gt;40383 - An unreadable content error occurs when you open Microsoft Excel files that were created by a 64-bit Excel driver&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 23:45:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82167#M23651</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-01-22T23:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export dbms=xlsx Column Limit</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82168#M23652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for pointing me towards this. It help clarify the matter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 13:33:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Export-dbms-xlsx-Column-Limit/m-p/82168#M23652</guid>
      <dc:creator>Deryl</dc:creator>
      <dc:date>2013-01-23T13:33:51Z</dc:date>
    </item>
  </channel>
</rss>

