LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 2006, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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

Hi,

Test code:

data _null_; file "c:\temp\temp.txt" mod; put "yes"; rc=sysrc();msg=sysmsg(); file log; put rc= msg=; run;

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?

Thanks, Scott


Back to: Top of message | Previous page | Main SAS-L page