03-18-2015 03:20 AM
I'm trying to import a csv file into SAS U, however every time I try and run the code, I get following error. Pl note: I have already set "myfolder" as my shared folder in the virtual machine. Can someone help?
libname MYDATA '/folders/myfolder/Ndata';
proc import datafile="/folders/myfolder/Ndata/APR2014.csv"
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
43 libname MYDATA '/folders/myfolder/Ndata';
NOTE: Libref MYDATA refers to the same physical library as OK.
WARNING: Library MYDATA does not exist.
NOTE: Libref MYDATA was successfully assigned as follows:
Physical Name: /folders/myfolder/Ndata
46 proc import datafile="/folders/myfolder/Ndata/APR2014.csv"
NOTE: Unable to open parameter catalog: SASUSER.PARMS.PARMS.SLIST in update mode. Temporary parameter values will be saved to
ERROR: Physical file does not exist, /folders/myfolder/Ndata/APR2014.csv.
ERROR: Import unsuccessful. See SAS Log for details.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used (Total process time):
real time 0.18 seconds
cpu time 0.19 seconds
52 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
03-18-2015 07:45 AM
It's supposed to be myfolderS - note the S - not myfolder.
You'll need to make sure it's correct both in your code and in when you set up your shared folder.
03-18-2015 08:11 AM