DATA Step, Macro, Functions and more

ERROR: Physical file does not exist, /folders/myfolders/ecprg193

Reply
Occasional Contributor
Posts: 6

ERROR: Physical file does not exist, /folders/myfolders/ecprg193

[ Edited ]

Hi,

 

I downladed SAS university edition and I get this error while running the practice programs in Lesson 2: Working with SAS Programs. I defined the orion library by creating ecprg193 setup. But I still get this error.

 

ERROR: Physical file does not exist, /folders/myfolders/ecprg193/country.dat.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.NEWCOUNTRY may be incomplete. When this step was stopped there were 0 observations and 2 variables.
WARNING: Data set WORK.NEWCOUNTRY was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
real time 0.03 seconds
cpu time 0.03 seconds
 
Please help!!
Super User
Posts: 11,343

Re: ERROR: Physical file does not exist, /folders/myfolders/ecprg193

Posted in reply to sriity_25

Please show the entire code along with the error.

Occasional Contributor
Posts: 6

Re: ERROR: Physical file does not exist, /folders/myfolders/ecprg193

data work.newcountry;
   length Country_Code $ 2 Country_Name $ 48;
   infile "&path/country.dat" dlm='!'; 
   input Country_Code $ Country_Name $;
run;

proc print data=work.newcountry;
run;

 

 

The error is as follows: 

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
55
56 data work.newcountry;
57 length Country_Code $ 2 Country_Name $ 48;
58 infile "&path/country.dat" dlm='!';
59 input Country_Code $ Country_Name $;
60 run;
 
ERROR: Physical file does not exist, /folders/myfolders/ecprg193/country.dat.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.NEWCOUNTRY may be incomplete. When this step was stopped there were 0 observations and 2 variables.
WARNING: Data set WORK.NEWCOUNTRY was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
real time 0.03 seconds
cpu time 0.03 seconds
 
 
61
62 proc print data=work.newcountry;
63 run;
 
NOTE: No observations in data set WORK.NEWCOUNTRY.
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
 
 
64
65 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
77
Super User
Posts: 11,343

Re: ERROR: Physical file does not exist, /folders/myfolders/ecprg193

Posted in reply to sriity_25

And the code assigning the PATH macro variable?

 

Note the path is going to be case sensitive. So if you named the folder Ecprg193 then that does not match ecprg193.

Occasional Contributor
Posts: 6

Re: ERROR: Physical file does not exist, /folders/myfolders/ecprg193

[ Edited ]

What is the code assigning the path?
This is the code I used for the setup
%let path=/folders/myfolders/ecprg193;
libname orion "&path";
And ecprg193 is in lowercase. I havent used Ecprg193 or anyother since I know it is case sensitive.

Frequent Contributor
Posts: 123

Re: ERROR: Physical file does not exist, /folders/myfolders/ecprg193

[ Edited ]
Posted in reply to sriity_25

When you run your setup program, you should see the note in the log:

 

NOTE: Libref ORION was successfully assigned

Does this show up?

Are you sure you created the folder you are referencing in that location?

  

Occasional Contributor
Posts: 6

Re: ERROR: Physical file does not exist, /folders/myfolders/ecprg193

[ Edited ]
Posted in reply to JediApprentice

Yes it does show up.
This is what I got in the log-
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 55         
 56         %let path=/folders/myfolders/ecprg193;
 57         libname orion "&path";
 NOTE: Libref ORION was successfully assigned as follows:
       Engine:        V9
       Physical Name: /folders/myfolders/ecprg193
 58         
 59         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 71 

 

I did not find any error.       

Occasional Contributor
Posts: 6

Re: ERROR: Physical file does not exist, /folders/myfolders/ecprg193

Posted in reply to JediApprentice
Yes I am sure. I created a folder "SASuniversityedition" in the desktop with a subfolder "my folders". Then linked it to the virtual box. Started SAS Studio and ran the ecprg193 as per the rules mentioned in the setup.
Super User
Posts: 19,878

Re: ERROR: Physical file does not exist, /folders/myfolders/ecprg193

Posted in reply to sriity_25

Post a screenshot of that folder. Also, does the folder contain the file referenced?

Can you open it as a text file?

 

 

Super User
Posts: 19,878

Re: ERROR: Physical file does not exist, /folders/myfolders/ecprg193

In SAS UE, go to the Server Files and Folders Pane. 

Find the ECPRG folder, navigate to the file. Right click the file and select properties. You'll get the path to the file. Use that in your code.

Occasional Contributor
Posts: 6

Re: ERROR: Physical file does not exist, /folders/myfolders/ecprg193

Posted in reply to sriity_25
Thank you Reeza, Ballardw and JediApprentice. I uninstalled it and installed it again. It is working now.
The path location was right. I dono exactly what went wrong. But itseems to be working now. Thank you for your replies. Sorry for the late reply.
Ask a Question
Discussion stats
  • 10 replies
  • 535 views
  • 1 like
  • 4 in conversation