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.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 1601 views
  • 1 like
  • 4 in conversation