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

I am new to SAS and I am trying to execute the below code  but having issues while execution.I have gone through other post still unable to figure out the issue.

VM mapping :

C:\SASUniversityEdition\myfolders

VM shared folder setting.png

 

Actual data file

mydata.png

 

 

data demographic;
infile '/folders/myfolders/mydata.txt';
input Gender $ Age Height Weight;
run;
title "Gender Frequencies";
proc freq data=demographic;
tables Gender;
run;
title "Summary Statistics";
proc means data=demographic;
var Age Height Weight;
run;

 

Error :

Physical file does not exist, /folders/myfolders/mydata.txt.

 

 

1 ACCEPTED SOLUTION
2 REPLIES 2
Reeza
Super User

Use the Servers Files and Folders Pane. Find your file. 

Right click the file and select properties. 
The path to the file will be there. 


Then you can use that in your PROC IMPORT.

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
  • 2 replies
  • 1071 views
  • 0 likes
  • 3 in conversation