DATA Step, Macro, Functions and more

Error while reading text file in SAS UE

Accepted Solution Solved
Reply
Occasional Learner
Posts: 1
Accepted Solution

Error while reading text file in SAS UE

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.

 

 


Accepted Solutions
Solution
‎01-17-2018 05:33 PM
PROC Star
Posts: 2,231

Re: Error while reading text file in SAS UE


All Replies
Solution
‎01-17-2018 05:33 PM
PROC Star
Posts: 2,231

Re: Error while reading text file in SAS UE

Super User
Posts: 22,874

Re: Error while reading text file in SAS UE

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.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 93 views
  • 0 likes
  • 3 in conversation