[progress Communities] [progress Openedge Abl] Forum Post: Re: Create A File Only One Time

  • Thread starter Thread starter David Abdala
  • Start date Start date
Status
Not open for further replies.
D

David Abdala

Guest
When I need to coordinate processes, the simplest is to use a LOCK on a record. In my case, I do an EXCLUSIVE-LOCK on a system wide config record ('Locking Record') and then check for the existence: FIND cttConfig WHERE cttConfig.Name = 'Locking' EXCLUSIVE-LOCK NO-WAIT. FILE-INFO:FILE-NAME = 'File to check' IF FILE-INFO:FULL-PATHNAME EQ ? THEN -- do it -- END. RELEASE cttConfig. You can wait for the lock, or fail, according to the logic.

Continue reading...
 
Status
Not open for further replies.
Back
Top