Back story: I'm trying to export files using SAS Enterprise Guide 5.1. I've done so successfully for quite a while. I have tons of SAS programs that run everyday without issues, but recently I've noticed SAS adding additional slashes (/) in file paths, and then claiming that the path is wrong. One of my SAS programs that has ran daily for months, without being edited at all, has developed this problem out of no where! Nothing changed in the code!
Here is the log from my latest export attempt that is having the same issue:
%PUT REPORTDATE = %sysfunc(intnx(day,%sysfunc(today()),-1),date7.);
REPORTDATE = 16AUG15
%LET FILE = filename_REPORTDATE..xlsx;
PROC EXPORT
DATA = finalData
OUTFILE = "filepath/&FILE"
DBMS = xlsx
REPLACE;
SHEET = "Sheet1";
RUN;
ERROR: Temporary file for XLSX file can not be created ->
/filepath//filename_REPORTDATE..$$1. Make sure the path name is correct
and that you have write permission.
So, the path isn't correct, and I don't have permission......because it doesn't exist with that extra /.
If any SAS wizards could shed some light on this, I'd appreciate it!
EDIT: 'filepath' is not a macro, I just removed the actual file path for privacy reasons. It is a written out path, "/foo/bar/&FILE"
filepathis a written-out fixed path, or is a macro variable? And, what version of SAS are you running (not EG version, but base SAS version)? - Joe