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

  • Thread starter Thread starter OlegM
  • Start date Start date
Status
Not open for further replies.
O

OlegM

Guest
Hi, You need an atomic operation and this operation is os-rename. First you need to create a known unique file. For example, the file name includes a pid, date, time, user number, and so on. Then this file is renamed. Only one user will see the zero result of the os-error function, which means a successful file creation. Another user will receive the result 10 (File exists).

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