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!  🙂

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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
  • 1138 views
  • 0 likes
  • 2 in conversation