Is there a way to exercise thread-like control over access to an operating-system dataset such that only one process can access it at a time? That is, something equivalent to putting Adabas records on hold.
I want to store information in a dataset so that processes from the Test or Production side of Natural have read-write access to the same data in real time. My program retrieves from the data with FIND READ-FILE, modifies it, then stores to the same dataset with PROCESS WRITE-FILE.
I want only one read-write cycle to run at a time. Would this automatically be controlled in a batch environment?
Thanks for any advice.