title: SAS E Guide 5.1 creating additional '/' in file path
body: <p>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! </p>
  
  <p>Here is the log from my latest export attempt that is having the same issue:</p>
  
  <p></p>
  
  <pre><code>     %PUT REPORTDATE = %sysfunc(intnx(day,%sysfunc(today()),-1),date7.);
       REPORTDATE = 16AUG15
  
  
       %LET FILE = filename_REPORTDATE..xlsx;
  
  
  
       PROC EXPORT
          DATA = finalData
          OUTFILE = "filepath/&amp;FILE"
          DBMS = xlsx
          REPLACE;
          SHEET = "Sheet1";
       RUN;
  
       ERROR: Temporary file for XLSX file can not be created -&gt; 
       /filepath//filename_REPORTDATE..$$1.  Make sure the path name is correct 
       and that you have write permission.
  </code></pre>
  
  <p>
  So, the path isn't correct, and I don't have permission......because it doesn't exist with that extra /. </p>
  
  <p>If any SAS wizards could shed some light on this, I'd appreciate it!</p>
  
  <p>EDIT: 'filepath' is not a macro, I just removed the actual file path for privacy reasons. It is a written out path, "/foo/bar/&amp;FILE"</p>