BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
vicdicenzo
Obsidian | Level 7

I am trying to import an Excel file.  The file is in this folder:

 

/Users/victordicenzo/Documents/SASUniversityEdition/myfolders/2019/RAND2011

 

This is my code:

 

/** Import an XLSX file.  **/
 
PROC IMPORT DATAFILE="/Users/victordicenzo/Documents/SASUniversityEdition/myfolders/2019/RAND2011/COVER11.XLSX"
   OUT=WORK.COVER11
   DBMS=XLSX
   REPLACE;
RUN;

 

This is my error message:

 

ERROR: The path
/Users/victordicenzo/Documents/SASUniversityEdition/myfolders/2019/RAND2011/EFFORT11.XLSX is
not in the list of accessible paths when SAS is in the lockdown state.
 
 
I have done this numerous times, did not change anything, but have never seen this error.  Is this because the files are now on iCloud?  I appreciate any help.
1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
If your question is answered, please post the solution and close this thread.

View solution in original post

5 REPLIES 5
vicdicenzo
Obsidian | Level 7

Correct. When I tried to import a new Excel file from my MacBook, I went to Finder and right clicked to "Get Info" then copied that path into SAS which gave me that error message.  I realized that it was different and put the code as you suggested and it gave the same error.  Thats when I reached out to the community for assistance.

ChrisNZ
Tourmaline | Level 20

>  then copied that path into SAS 

The MacOS path and the path visible from inside the SAS UE VM are different.

Doing this will never work.

 

Which also means it cannot [have worked before and nothing changed ].

 

vicdicenzo
Obsidian | Level 7

But your comment did help so thanks, I appreciate it.

Reeza
Super User
If your question is answered, please post the solution and close this thread.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 770 views
  • 2 likes
  • 4 in conversation