DATA Step, Macro, Functions and more

How do I reference SAS data from within a SAS program on Mac ?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 8
Accepted Solution

How do I reference SAS data from within a SAS program on Mac ?

[ Edited ]

Hi guys! I'm very very new to SAS and I have a dumb question. I'm trying to find a path on my MAC fo access data, but it all comes out "ERROR: Physical file does not exist". I'm using SAS university edition on virtualbox. I have read the SAS support 

http://support.sas.com/software/products/university-edition/faq/shared_folder_access.htm

but I still don't get it.

here's my panel

Screen Shot 2015-10-17 at 5.19.16 PM.png

Screen Shot 2015-10-17 at 5.31.09 PM.png

Screen Shot 2015-10-17 at 5.31.09 PM.png

and the path I had is 'folders/myfolders/sasuser.v94/stat390/age.dat'

Did I do anything wrong? Thank you!


Accepted Solutions
Solution
‎10-18-2015 11:47 PM
SAS Super FREQ
Posts: 8,866

Re: How do I reference SAS data from within a SAS program on Mac ?

Posted in reply to panpan1215
Hi:
You must ALWAYS preceded the path with a leading slash:
'/folders/myfolders/......';

You only have 'folders/myfolders.....'; without the leading slash.

If you look very carefully at the link you posted, you will see a slash for /folders/myfolders in the path.

cynthia

View solution in original post


All Replies
Solution
‎10-18-2015 11:47 PM
SAS Super FREQ
Posts: 8,866

Re: How do I reference SAS data from within a SAS program on Mac ?

Posted in reply to panpan1215
Hi:
You must ALWAYS preceded the path with a leading slash:
'/folders/myfolders/......';

You only have 'folders/myfolders.....'; without the leading slash.

If you look very carefully at the link you posted, you will see a slash for /folders/myfolders in the path.

cynthia
Occasional Contributor
Posts: 8

Re: How do I reference SAS data from within a SAS program on Mac ?

Posted in reply to Cynthia_sas

Thank you so much!

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 238 views
  • 0 likes
  • 2 in conversation