05-01-2018 02:02 AM
INFILE 'E:\SASUniversityEdition\myfolders\Essentials\EXAMPLE.CSV' DLM=',' FIRSTOBS=2 OBS=11;
INPUT GROUP $ AGE TIME1 TIME2 TIME3 Time4 SOCIO;
PROC PRINT DATA=MYDATA;
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.....!
05-01-2018 02:28 AM
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.
05-01-2018 04:29 AM
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.