<?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: Error when running proc export to create file on windows server in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-when-running-proc-export-to-create-file-on-windows-server/m-p/227517#M41008</link>
    <description>&lt;P&gt;Large economy size hint: Compare the place you tried to write and the location referenced in the error message. The combination of / and \ tells me that you are likely running with SAS running on a Unix server and you don't have permissions to write to the disks on the server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may need to talk to your SAS admin about how to direct output back to your PC instead of to locations on the server.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2015 15:23:11 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-09-28T15:23:11Z</dc:date>
    <item>
      <title>Error when running proc export to create file on windows server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-running-proc-export-to-create-file-on-windows-server/m-p/227514#M41007</link>
      <description>&lt;P&gt;I am attemping to read a sas table and write the output to a .csv file on windows server.&amp;nbsp; Seems pretty easy... but I can't get it to work.&amp;nbsp; I am getting error 'insufficient priveleges', however, I looks like the statement has put a sasbase library in fron of the windows location to put my exported file.&amp;nbsp; I don't understand why it is looking at sasbase when I am directing it in the export opens to the windows path.&amp;nbsp; Of course, this is needed within an hour!&amp;nbsp; I have never done an export like this.&amp;nbsp;Can anyone offer any suggestionsj&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;Here is my code:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;SQL&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;/* Development */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; CREATE TABLE WORK.Sales_Extract AS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; SELECT *&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM SALES.SALES_TABLE;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;QUIT&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;EXPORT&lt;/STRONG&gt; DATA=WORK.Sales_Extract&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUTFILE='c:\Data\Extracts\SalesExtract.csv'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms=csv;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DELIMITER=',';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PUTNAMES=yes;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;ERROR: Insufficient authorization to access /sasbase/SAS9.2/config/Lev1/SASApp/c:\Data\Extracts\SalesExtract.csv.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 15:08:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-running-proc-export-to-create-file-on-windows-server/m-p/227514#M41007</guid>
      <dc:creator>ncsthbell</dc:creator>
      <dc:date>2015-09-28T15:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running proc export to create file on windows server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-running-proc-export-to-create-file-on-windows-server/m-p/227517#M41008</link>
      <description>&lt;P&gt;Large economy size hint: Compare the place you tried to write and the location referenced in the error message. The combination of / and \ tells me that you are likely running with SAS running on a Unix server and you don't have permissions to write to the disks on the server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may need to talk to your SAS admin about how to direct output back to your PC instead of to locations on the server.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 15:23:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-running-proc-export-to-create-file-on-windows-server/m-p/227517#M41008</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-09-28T15:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error when running proc export to create file on windows server</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-running-proc-export-to-create-file-on-windows-server/m-p/227519#M41009</link>
      <description>Your data is on the server, not on your C drive. You can export it to the server and then FTP it off. Are you using Base SAS?  &lt;BR /&gt;If so you may be able to use the following to get it to your local drive:&lt;BR /&gt;&lt;BR /&gt;libname rmtwork slibref=work server=YOURSERVER;&lt;BR /&gt;&lt;BR /&gt;Then do a proc export with: RMTWORK instead of WORK.  &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Sep 2015 15:35:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-running-proc-export-to-create-file-on-windows-server/m-p/227519#M41009</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-09-28T15:35:10Z</dc:date>
    </item>
  </channel>
</rss>

