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

I have created a folder named SASUniversityEdition on my local computer, created a subfolder within theSASUniversityEdition folder called myfolders. And have shared my myfolders folder with VirtualBox. The shared folder and files within it can be listed in SAS studio in the left list.

When I run "

libname mydata '/folders/myfolders';

options ps=10200;
filename aa 'phe.csv';
filename bb1 'genotype.csv';
filename dd 'q_str.csv';

....

"

in SAS studio (http://localhost:10080)

 

an error as follows:

ERROR: physical file“/opt/sasinside/SASConfig/Lev1/SASApp/phe.csv” dose not exist。

 

Who can tell me where should I put my file ‘phe.csv’,'genotype.csv' and  'q_str.csv'?

I put these files in the shared fold /SASUniversityEdition/myfolders now, I can see these files displayed in the left list in SAS studio, but it seems that it doesn't work.

Or something else is wrong?

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

In UNIX (SAS UE runs on a UNIX virtual machine) you have to use absolute pathnames, otherwise your process starts to search in the current working directory, which is

/opt/sasinside/SASConfig/Lev1/SASApp

Use the whole path, starting at root:

filename aa '/folders/myfolders/phe.csv';

View solution in original post

4 REPLIES 4
RM6
Obsidian | Level 7 RM6
Obsidian | Level 7
can you check permissions for these .csv files and if its read only, change permissions first and try the same code
Kurt_Bremser
Super User

In UNIX (SAS UE runs on a UNIX virtual machine) you have to use absolute pathnames, otherwise your process starts to search in the current working directory, which is

/opt/sasinside/SASConfig/Lev1/SASApp

Use the whole path, starting at root:

filename aa '/folders/myfolders/phe.csv';
koyelghosh
Lapis Lazuli | Level 10
I will suggest rather make SASUniversityEdition/myfolders in the ~ directory (home directory) and then allow virtual box to access it.
Currently the folder might be in the root directory, to which SAS may not have access to. Just a guess.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1531 views
  • 5 likes
  • 4 in conversation