<?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 to Excel doesn't in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-Excel-doesn-t/m-p/732556#M228278</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/376436"&gt;@dmarques1998&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Have reupload with the log.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Failure to follow instructions: the "log" does not show any of the code. It should start with the Proc statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The bit posted does show that something else is likely using your file. Possibly a previous failed attempt to write, or opening the file, or possibly even an operating system error message window is open somewhere. So you need to find which program, and if this is on a file system where other's may have access to the file which user, and get that process stopped.&lt;/P&gt;
&lt;PRE&gt;ERROR: Resource is write-locked by another thread.  File &lt;FONT size="5" color="#FF0000"&gt;&lt;STRONG&gt;=/xxxxxx//Y.$$1.&lt;/STRONG&gt;&lt;/FONT&gt;
Error creating temporary file for XLSX file -&amp;gt; /xxxxxxx/Y.$$1 .  It is 
       either not an Excel spreadsheet or it is damaged.   Error code=80001019
Requested Output File is Invalid
ERROR: Export unsuccessful.  See SAS Log for details.
NOTE: The SAS System stopped processing this step because of errors.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Apr 2021 16:43:12 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-04-09T16:43:12Z</dc:date>
    <item>
      <title>Proc export to Excel doesn't</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-Excel-doesn-t/m-p/732543#M228268</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to export SAS dataset to an excel file. However, when I run the code, Sas only create this type of file "$$1" and not a excel file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SORT DATA= Data; BY Y; RUN;

PROC MEANS DATA= Data;
	VAR X;
	BY Y;
	OUTPUT OUT= Y  SUM=;
RUN;

proc export data=Data

outfile= "xxxxxx/DATA.xlsx"
dbms=xlsx replace; 
sheet='Y'; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and here is the log:&lt;/P&gt;&lt;PRE&gt;ERROR: Resource is write-locked by another thread.  File =/xxxxxx//Y.$$1.
Error creating temporary file for XLSX file -&amp;gt; /xxxxxxx/Y.$$1 .  It is 
       either not an Excel spreadsheet or it is damaged.   Error code=80001019
Requested Output File is Invalid
ERROR: Export unsuccessful.  See SAS Log for details.
NOTE: The SAS System stopped processing this step because of errors.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 16:35:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-Excel-doesn-t/m-p/732543#M228268</guid>
      <dc:creator>dmarques1998</dc:creator>
      <dc:date>2021-04-09T16:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to Excel doesn't</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-Excel-doesn-t/m-p/732544#M228269</link>
      <description>Show the log.</description>
      <pubDate>Fri, 09 Apr 2021 16:24:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-Excel-doesn-t/m-p/732544#M228269</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-04-09T16:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to Excel doesn't</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-Excel-doesn-t/m-p/732546#M228271</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/376436"&gt;@dmarques1998&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to export SAS dataset to an excel file. However, when I run the code, Sas only create this type of file "$$1" and not a excel file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*STA*/
PROC SORT DATA= Data; BY Y; RUN;

PROC MEANS DATA= Data;
	VAR X;
	BY Y;
	OUTPUT OUT= Y  SUM=;
RUN;

proc export data=Data

outfile= "xxxxxx/DATA.xlsx"
dbms=xlsx replace; 
sheet='Y'; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What does your LOG show for the Proc Export? Copy the text from the LOG starting with the "Proc Export" and include all of the notes and messages. On the forum open a text box and paste the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Generally things like "$$1" indicate at some point the file system is having an issue of some sort and usually has something in the log.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 16:25:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-Excel-doesn-t/m-p/732546#M228271</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-04-09T16:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to Excel doesn't</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-Excel-doesn-t/m-p/732554#M228276</link>
      <description>Have reupload with the log.</description>
      <pubDate>Fri, 09 Apr 2021 16:35:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-Excel-doesn-t/m-p/732554#M228276</guid>
      <dc:creator>dmarques1998</dc:creator>
      <dc:date>2021-04-09T16:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to Excel doesn't</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-Excel-doesn-t/m-p/732555#M228277</link>
      <description>SAS thinks that something has the Excel file locked and can't overwrite it. Try writing it to a different file name and see what happens.</description>
      <pubDate>Fri, 09 Apr 2021 16:39:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-Excel-doesn-t/m-p/732555#M228277</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-04-09T16:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to Excel doesn't</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-Excel-doesn-t/m-p/732556#M228278</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/376436"&gt;@dmarques1998&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Have reupload with the log.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Failure to follow instructions: the "log" does not show any of the code. It should start with the Proc statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The bit posted does show that something else is likely using your file. Possibly a previous failed attempt to write, or opening the file, or possibly even an operating system error message window is open somewhere. So you need to find which program, and if this is on a file system where other's may have access to the file which user, and get that process stopped.&lt;/P&gt;
&lt;PRE&gt;ERROR: Resource is write-locked by another thread.  File &lt;FONT size="5" color="#FF0000"&gt;&lt;STRONG&gt;=/xxxxxx//Y.$$1.&lt;/STRONG&gt;&lt;/FONT&gt;
Error creating temporary file for XLSX file -&amp;gt; /xxxxxxx/Y.$$1 .  It is 
       either not an Excel spreadsheet or it is damaged.   Error code=80001019
Requested Output File is Invalid
ERROR: Export unsuccessful.  See SAS Log for details.
NOTE: The SAS System stopped processing this step because of errors.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 16:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-export-to-Excel-doesn-t/m-p/732556#M228278</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-04-09T16:43:12Z</dc:date>
    </item>
  </channel>
</rss>

