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! 🙂
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.