I am trying to import a tab of a spreadsheet into SAS. I am using the code below.
proc import
datafile="[directories....]\4. Media\2. Campaign Info\Tracking_Sheet_JA.xlsx"
out=test1
dbms=xlsx replace;
sheet="db_data";
run;
and get the error message
ERROR: XLSX file does not exist -> [directories....]\4. Media\2. Campaign Info\Tracking_Sheet_JA.xlsx
I thought it might be something do do with the spaces or . in the directory, however when i pick another random file from that directory and import using exactly the same code as above it works fine. For Example
proc import
datafile="[directories....]\4. Media\2. Campaign Info\9feb.xlsx"
out=test1
dbms=xlsx replace;
sheet="uk";
run;
I am certain the file extensions and tab references are correct. Could there be something to do with the settings of my excel file that would cause this?
Thanks.