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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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