<?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 Viya - proc export with replace gives ERROR: File denoted by URI was not found in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Viya-proc-export-with-replace-gives-ERROR-File-denoted-by/m-p/696187#M212607</link>
    <description>&lt;P&gt;Hi, I'm doing a simple proc export:&lt;/P&gt;
&lt;PRE&gt;FILENAME REFFILE FILESRVC FOLDERPATH="&amp;amp;exp_path" FILENAME='cars.csv';
proc export data=sashelp.cars outfile=REFFILE dbms=csv replace; run;
FILENAME REFFILE clear;&lt;/PRE&gt;
&lt;P&gt;&amp;amp;exp_path exists.&lt;/P&gt;
&lt;P&gt;First time I run it, it runs fine and the csv is created correctly. Second time I run it, I get the error: "&lt;SPAN&gt;ERROR: File denoted by URI '/files/files/c36d64c8-4d60-416c-833e-7633a138bf8e' was not found" and it corrupts the file cars.csv.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If I take out the replace option, it runs fine, it just says that it won't replace the file because I didn't specify the replace option.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What am I doing wrong? I'm on SAS Viya 3.5&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2020 13:39:10 GMT</pubDate>
    <dc:creator>alexandravieira</dc:creator>
    <dc:date>2020-11-03T13:39:10Z</dc:date>
    <item>
      <title>SAS Viya - proc export with replace gives ERROR: File denoted by URI was not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Viya-proc-export-with-replace-gives-ERROR-File-denoted-by/m-p/696187#M212607</link>
      <description>&lt;P&gt;Hi, I'm doing a simple proc export:&lt;/P&gt;
&lt;PRE&gt;FILENAME REFFILE FILESRVC FOLDERPATH="&amp;amp;exp_path" FILENAME='cars.csv';
proc export data=sashelp.cars outfile=REFFILE dbms=csv replace; run;
FILENAME REFFILE clear;&lt;/PRE&gt;
&lt;P&gt;&amp;amp;exp_path exists.&lt;/P&gt;
&lt;P&gt;First time I run it, it runs fine and the csv is created correctly. Second time I run it, I get the error: "&lt;SPAN&gt;ERROR: File denoted by URI '/files/files/c36d64c8-4d60-416c-833e-7633a138bf8e' was not found" and it corrupts the file cars.csv.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If I take out the replace option, it runs fine, it just says that it won't replace the file because I didn't specify the replace option.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What am I doing wrong? I'm on SAS Viya 3.5&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 13:39:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Viya-proc-export-with-replace-gives-ERROR-File-denoted-by/m-p/696187#M212607</guid>
      <dc:creator>alexandravieira</dc:creator>
      <dc:date>2020-11-03T13:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Viya - proc export with replace gives ERROR: File denoted by URI was not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Viya-proc-export-with-replace-gives-ERROR-File-denoted-by/m-p/696429#M212718</link>
      <description>&lt;P&gt;I ran this code on SAS Viya 3.5, it works every time, in the log one can see, that there is always a new file uri shown.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename reffile filesrvc folderpath="&amp;amp;exp_path" filename='cars.csv';

proc export
  data=sashelp.cars
  outfile=REFFILE
  dbms=csv
  replace
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What are your permissions on the folder you write the file too? You can view those using the applications menu -&amp;gt; Environment Manager -&amp;gt; Content and then use the RightMouseButton to view the Authorization on the folder in question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe it is best to contact Technical Support on this error.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 10:10:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Viya-proc-export-with-replace-gives-ERROR-File-denoted-by/m-p/696429#M212718</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2020-11-04T10:10:11Z</dc:date>
    </item>
  </channel>
</rss>

