DATA MYDATA;
INFILE 'E:\SASUniversityEdition\myfolders\Essentials\EXAMPLE.CSV' DLM=',' FIRSTOBS=2 OBS=11;
INPUT GROUP $ AGE TIME1 TIME2 TIME3 Time4 SOCIO;
PROC PRINT DATA=MYDATA;
RUN;
After running this my SAS is showing that the physical file does not exist, Although the file is there at the specified location in INFILE statement.Can anybody help me with this.....!
TRY
INFILE 'myfolders\Essentials\EXAMPLE.CSV' DLM=',' FIRSTOBS=2 OBS=11;
It still is not working......!
Do you connect to a server to run sas programs? It looks like you might, and if that is the case then the file path needs to be correct from the perspective of the server, not your own computer.
You would need to copy the input file from your computer to a shared drive or to the server itself. If you access a shared drive through a drive letter (eg. S:\ drive) then the server would need to have the exact same drive letter setup. If the server does not, you'll need to get the UNC path to the shared drive.
It looks like you are using University Edition. In this case, the filename should be
infile '/folders/myfolder/Essentials/EXAMPLE.CSV' dlm=',' firstobs=2 obs=11;
Note that the underlying Linux of UE is case sensitive where filenames are concerned, so upper/lowercase needs to match exactly.
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.