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-2024.png

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.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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