BookmarkSubscribeRSS Feed
Grumbler
Obsidian | Level 7

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.

3 REPLIES 3
Ksharp
Super User

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

 

data _null_;

rc=sleep(10,1);

run;

SASKiwi
PROC Star

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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1498 views
  • 1 like
  • 4 in conversation