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
What am I doing wrong?
Probably don't need to reinstall. Myfolders is all lower case? Set up in VM?
Try restarting VM?
1. Double check that your myfolders is set up properly. If the following runs correctly it is.
Libname test '/folders/myfolders'
2. Make sure your file is properly referenced - it is case sensitive.
Sorry about two posts. Slight issue posting
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?
Probably don't need to reinstall. Myfolders is all lower case? Set up in VM?
Try restarting VM?
It started working after I restarted the VM twice. Wow, thank you so much! 🙂
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.