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.
Maybe there are some time delay when you connect to network path. Try wait some seconds:
data _null_;
rc=sleep(10,1);
run;
You could try using the FILEXIST function to confirm first if SAS can find the file:
If it doesn't exist then you could keep repeating the function until SAS successfully finds it.
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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.