Hi, I'm doing a simple proc export:
FILENAME REFFILE FILESRVC FOLDERPATH="&exp_path" FILENAME='cars.csv';
proc export data=sashelp.cars outfile=REFFILE dbms=csv replace; run;
FILENAME REFFILE clear;
&exp_path exists.
First time I run it, it runs fine and the csv is created correctly. Second time I run it, I get the error: "ERROR: File denoted by URI '/files/files/c36d64c8-4d60-416c-833e-7633a138bf8e' was not found" and it corrupts the file cars.csv.
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.
What am I doing wrong? I'm on SAS Viya 3.5
Thanks in advance
Alex