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

Hi all!

 

I've been trying to open a file for the past hour, and it's driving me crazy.  I have a file called 'temp3.txt' with the address

 

'C:\SASUniversityEdition\myfolders\temp3.txt'

 

and I tried to use the inline command to open this in SAS UE with the '/folders/myfolders/...' path:

 

DATA temp3;
	infile '/folders/myfolders/temp3.txt';
	input subj 1-4 gender 6 height 8-9 weight 11-13;
RUN;
PROC PRINT data = temp3;
	title 'Output dataset: TEMP3';
RUN;

But I when I run this code, I get an error message saying

 

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
55
56 DATA temp3;
57 infile '/folders/myfolders/temp3.txt';
58 input subj 1-4 gender 6 height 8-9 weight 11-13;
59 RUN;
 
ERROR: Physical file does not exist, /folders/myfolders/temp3.txt.

 

 

What am I doing wrong?

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Probably don't need to reinstall. Myfolders is all lower case? Set up in VM? 

Try restarting VM?

View solution in original post

5 REPLIES 5
Reeza
Super User

1. Double check that your myfolders is set up properly. If the following runs correctly it is. 

Libname test '/folders/myfolders'
Reeza
Super User

2. Make sure your file is properly referenced - it is case sensitive. 

Sorry about two posts. Slight issue posting

 

 

concernedRock
Fluorite | Level 6

Thank you for the reply.  When I run your code, it does give me an error saying "Libref TEST is not assigned".

However, I checked my virtual machine setting:

 

1) Shared Folders is set to "Enabled", and

 

2) The host path "C:\SASUniversityEdition\myfolders" is added under the name "myfolders" (in "Folder sharing" tab).

 

Yet it still does not work.  Do you think I should just re-install the program?

Reeza
Super User

Probably don't need to reinstall. Myfolders is all lower case? Set up in VM? 

Try restarting VM?

concernedRock
Fluorite | Level 6

It started working after I restarted the VM twice.  Wow, thank you so much!  🙂

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 2085 views
  • 0 likes
  • 2 in conversation