Date: Fri, 14 Jul 2006 03:38:34 -0400
Reply-To: Scott Bass <sas_l_739@YAHOO.COM.AU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Scott Bass <sas_l_739@YAHOO.COM.AU>
Subject: Testing if an external file is locked
file "c:\temp\temp.txt" mod;
put rc= msg=;
Now give the command 'fslist "c:\temp\temp.txt"' and resubmit above code.
What I want to do is:
* attempt to write to the file
* if locked, sleep for x seconds
* try again
* rinse, repeat as needed
* not generate an error msg in the log
If you have code that does this, could you post it please?