DATA Step, Macro, Functions and more

infile in sas studio

Reply
Occasional Contributor
Posts: 7

infile in sas studio

Hi when i use the below mentioned sas code to access the data, it throws the error-physical file does not exist. I am using sas studio. and have added the text data into my sas folder. 

 

Do is need to add anything else.

data price;
infile="/folders/myfolders/data_infile.txt";
input brand $ model $ price;
run;

 

 Thanks!

Super User
Posts: 10,534

Re: infile in sas studio

If you followed the instructions when setting up your SAS UE, then it is /folders/myfolder (note the missing "s" at the end)

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Ask a Question
Discussion stats
  • 1 reply
  • 44 views
  • 0 likes
  • 2 in conversation