<?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: Error in the FILENAME statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-Error-in-the-FILENAME-statement/m-p/443369#M110913</link>
    <description>&lt;P&gt;Cinthya_sas gave the solution for this problem in this discussion:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Unable-to-export-data-to-local-folders-PROC-EXPORT-in-SAS-EG/td-p/159122" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Unable-to-export-data-to-local-folders-PROC-EXPORT-in-SAS-EG/td-p/159122&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The location in the FILENAME statement must refer an directory in the SAS Server, not in the local machine. Then, &amp;nbsp;it will be like this: "/home/xxxxxxxxxx". The SAS Administrator should answer the right path of this directory.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Mar 2018 15:51:44 GMT</pubDate>
    <dc:creator>Hederson</dc:creator>
    <dc:date>2018-03-07T15:51:44Z</dc:date>
    <item>
      <title>PROC EXPORT: Error in the FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-Error-in-the-FILENAME-statement/m-p/443321#M110900</link>
      <description>&lt;P&gt;Hi everybody.&lt;/P&gt;&lt;P&gt;I am exporting data from SAS to a file with CSV format, however I am getting the error:&lt;/P&gt;&lt;P&gt;"Error in the FILENAME statement."&lt;/P&gt;&lt;P&gt;The code that I am running is:&lt;/P&gt;&lt;P&gt;FILENAME EXPRT = 'd:\exp.csv' ENCODING="UTF-8";&lt;BR /&gt;PROC EXPORT DATA=TEXTO.SAS_TEXTO&lt;BR /&gt;OUTFILE = EXPRT&lt;BR /&gt;DBMS=TAB;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SAS Server is linux and my local computer is Windows 7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does&amp;nbsp;anyone&amp;nbsp;know what happening is?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 14:45:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-Error-in-the-FILENAME-statement/m-p/443321#M110900</guid>
      <dc:creator>Hederson</dc:creator>
      <dc:date>2018-03-07T14:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: PROC EXPORT: Error in the FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-Error-in-the-FILENAME-statement/m-p/443325#M110901</link>
      <description>&lt;P&gt;Start with the piece that we know to be wrong:&amp;nbsp; remove the first equal sign in the FILENAME statement.&amp;nbsp; Test and see if that's enough or if more change is needed.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 14:51:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-Error-in-the-FILENAME-statement/m-p/443325#M110901</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-03-07T14:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: PROC EXPORT: Error in the FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-Error-in-the-FILENAME-statement/m-p/443335#M110904</link>
      <description>&lt;P&gt;Thanks Astouding. This equal sign really was a problem. After I removed it the code running, and now I have a new error of authorization in the SAS server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: Insufficient authorization to access /opt/app/SASConfig/Lev1/SASApp/d:\exp.csv&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed the FILENAME statement for the file be wrote in the SAS Server, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILENAME EXPRT TEXTO.exp.csv ENCODING="UTF-8";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TEXTO is a libname. However I got the same error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know why SAS server is using the directory /opt/app/SASConfig... and not /opt/app/saswork... where I have write permission?&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 15:04:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-Error-in-the-FILENAME-statement/m-p/443335#M110904</guid>
      <dc:creator>Hederson</dc:creator>
      <dc:date>2018-03-07T15:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: PROC EXPORT: Error in the FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-Error-in-the-FILENAME-statement/m-p/443369#M110913</link>
      <description>&lt;P&gt;Cinthya_sas gave the solution for this problem in this discussion:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Unable-to-export-data-to-local-folders-PROC-EXPORT-in-SAS-EG/td-p/159122" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Unable-to-export-data-to-local-folders-PROC-EXPORT-in-SAS-EG/td-p/159122&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The location in the FILENAME statement must refer an directory in the SAS Server, not in the local machine. Then, &amp;nbsp;it will be like this: "/home/xxxxxxxxxx". The SAS Administrator should answer the right path of this directory.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 15:51:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-Error-in-the-FILENAME-statement/m-p/443369#M110913</guid>
      <dc:creator>Hederson</dc:creator>
      <dc:date>2018-03-07T15:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC EXPORT: Error in the FILENAME statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-Error-in-the-FILENAME-statement/m-p/443376#M110915</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/90292"&gt;@Hederson&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thanks Astouding. This equal sign really was a problem. After I removed it the code running, and now I have a new error of authorization in the SAS server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR: Insufficient authorization to access /opt/app/SASConfig/Lev1/SASApp/d:\exp.csv&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I changed the FILENAME statement for the file be wrote in the SAS Server, like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FILENAME EXPRT TEXTO.exp.csv ENCODING="UTF-8";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TEXTO is a libname. However I got the same error message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know why SAS server is using the directory /opt/app/SASConfig... and not /opt/app/saswork... where I have write permission?&lt;/P&gt;
&lt;P&gt;What am I doing wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Most likely issue: you are running the code on a SERVER and the server is using a path relative to where it is currently executing as the server doesn't know where your "d:\exp.csv" would be. And you don't have permissions to create files in the SAS configuration folder. Use an fully qualified path for filename statements. If you want the file on your hard drive then you likely need IT to set up the link so the server can find it or possibly set up a shared folder both can see or export the file to the correct folder and use another task to transfer the file to your hard drive.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your error message doesn't match the filename so other issues may arise.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 15:54:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-EXPORT-Error-in-the-FILENAME-statement/m-p/443376#M110915</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-07T15:54:08Z</dc:date>
    </item>
  </channel>
</rss>

