DATA Step, Macro, Functions and more

ERROR: Physical file does not exist

Reply
Contributor
Posts: 45

ERROR: Physical file does not exist

i have a program with filename statement pointing to a file with a network path.  then use the infile statement to convert it to SAS dataset.  it works fine vast majority of the time.

 

however, once in a while when we process tons of jobs at same time, one or two will fail due to error of can not find the file.  obviously, the file is there.

 

any ideas?  thanks.

Super User
Posts: 9,681

Re: ERROR: Physical file does not exist

Maybe there are some time delay when you connect to network path. Try wait some seconds:

 

data _null_;

rc=sleep(10,1);

run;

Super User
Posts: 3,105

Re: ERROR: Physical file does not exist

You could try using the FILEXIST function to confirm first if SAS can find the file:

 

http://support.sas.com/documentation/cdl/en/lefunctionsref/67960/HTML/default/viewer.htm#n06xm8hwk0t...

 

If it doesn't exist then you could keep repeating the function until SAS successfully finds it.

Super User
Posts: 6,936

Re: ERROR: Physical file does not exist

And, if you use SASKiwis method, you might consider setting a maximum number of repeats, so that your job won't wait for the rest of eternity.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 3 replies
  • 203 views
  • 1 like
  • 4 in conversation