On Sat, 27 Jun 2026 13:06:44 +0000, Seymour J Metz <[email protected]> wrote:

>That's certainly the way DISP and ENQ work, and it is appropriate in many 
>cases, but there is utility in supporting single writer multiple reader 
>serialization  as unix-like systems do. There's also a place for micro 
>serialization.
>
"micro serialization" e.g.:
  while sleep 1; do printf AAAA; date; done >>mylog >>mylog &
  while sleep 1; do printf ZZZA; date; done >>mylog >>mylog &
  : >mylog; tail -f mylog

______________________________________
>Fro :  Farley, Peter 
>Sent: Friday, June 26, 2026 1:58 AM
>
>I would think that a file opened with O_APPEND (same as for DISP=(MOD,…) in 
>JCL) should be allocated exclusively to the first process where the open 
>succeeds and that process should keep exclusive control of that file/stream 
>until it issues a close.  All other processes that issue an open for the same 
>file/stream after the first one succeeds should get an error until the first 
>process releases control via close.


-- 
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to