<?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 SAS export to Excel file issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-export-to-Excel-file-issue/m-p/709365#M218115</link>
    <description>&lt;P&gt;Hi SAS Users,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a problem when exporting a SAS file(235,009 observations) to an Excel file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4" color="#000080"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="4" color="#000080"&gt;EXPORT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="4" color="#0000ff"&gt;DATA&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;=SASFILE&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4" color="#0000ff"&gt;OUTFILE&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="4" color="#800080"&gt;'P:\OUT\EXCELFILE.xlsx'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4" color="#0000ff"&gt;DBMS&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;=excel &lt;/FONT&gt;&lt;FONT face="Courier New" size="4" color="#0000ff"&gt;REPLACE&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4" color="#000080"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;However I got an error in the log:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Execute: Unable to insert row&lt;/P&gt;
&lt;P&gt;WARNING: File deletion failed for _IMEX_.SASFILE.DATA.&lt;/P&gt;
&lt;P&gt;ERROR: Export unsuccessful. See SAS Log for details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But there&amp;nbsp;has&amp;nbsp;not much information in the log. I checked the output folder(&lt;FONT face="Courier New" size="4" color="#800080"&gt;P:\OUT\&lt;/FONT&gt;) and did see the Excel file has been output but not fully output. The input SAS file has 235,009 observations, but the output Excel file only has 212,419 observations. There are 23,590 observations missing! So that's why the log says 'Unable to insert row'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have struggled this issue with multiple hours. Could you please give me some advice?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Runrunbunny&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jan 2021 02:58:01 GMT</pubDate>
    <dc:creator>runrunbunny</dc:creator>
    <dc:date>2021-01-05T02:58:01Z</dc:date>
    <item>
      <title>SAS export to Excel file issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-export-to-Excel-file-issue/m-p/709365#M218115</link>
      <description>&lt;P&gt;Hi SAS Users,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a problem when exporting a SAS file(235,009 observations) to an Excel file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4" color="#000080"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="4" color="#000080"&gt;EXPORT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="4" color="#0000ff"&gt;DATA&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;=SASFILE&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4" color="#0000ff"&gt;OUTFILE&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="4" color="#800080"&gt;'P:\OUT\EXCELFILE.xlsx'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4" color="#0000ff"&gt;DBMS&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;=excel &lt;/FONT&gt;&lt;FONT face="Courier New" size="4" color="#0000ff"&gt;REPLACE&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4" color="#000080"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;However I got an error in the log:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Execute: Unable to insert row&lt;/P&gt;
&lt;P&gt;WARNING: File deletion failed for _IMEX_.SASFILE.DATA.&lt;/P&gt;
&lt;P&gt;ERROR: Export unsuccessful. See SAS Log for details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But there&amp;nbsp;has&amp;nbsp;not much information in the log. I checked the output folder(&lt;FONT face="Courier New" size="4" color="#800080"&gt;P:\OUT\&lt;/FONT&gt;) and did see the Excel file has been output but not fully output. The input SAS file has 235,009 observations, but the output Excel file only has 212,419 observations. There are 23,590 observations missing! So that's why the log says 'Unable to insert row'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have struggled this issue with multiple hours. Could you please give me some advice?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Runrunbunny&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 02:58:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-export-to-Excel-file-issue/m-p/709365#M218115</guid>
      <dc:creator>runrunbunny</dc:creator>
      <dc:date>2021-01-05T02:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS export to Excel file issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-export-to-Excel-file-issue/m-p/709367#M218117</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/287395"&gt;@runrunbunny&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check out this KB link mentioning about similar problem.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/14/487.html" target="_blank"&gt;https://support.sas.com/kb/14/487.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 03:28:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-export-to-Excel-file-issue/m-p/709367#M218117</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2021-01-05T03:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS export to Excel file issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-export-to-Excel-file-issue/m-p/709368#M218118</link>
      <description>Thank you!</description>
      <pubDate>Tue, 05 Jan 2021 03:31:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-export-to-Excel-file-issue/m-p/709368#M218118</guid>
      <dc:creator>runrunbunny</dc:creator>
      <dc:date>2021-01-05T03:31:02Z</dc:date>
    </item>
  </channel>
</rss>

