On Tue, 7 Oct 2025 22:11:12 +0000, Pommier, Rex  wrote:
>
>Just wanting to make sure I understand this correctly.  I have a small VSAM 
>ESDS that is going to be used by both CICS and batch.  What's happening is the 
>CICS region writes (appends) a record to the ESDS, then submits a batch job to 
>read the ESDS and pick up the record that was just written, using the 
>information in the record to go out and do additional processing against other 
>datasets.  The batch process is only reading the ESDS, using a parameter the 
>CICS process passed to the batch job to know which record to further process.  
>My thinking is that if I specify SHR(4,3) this should work.  I'm being 
>promised the process will only involve 10-20 records a day.  Am I correct in 
>my reading of this:
>    ...
How does ESDS compare to a UNIX file opened with O_APPEND?  Pros?  Cons?
<https://www.ibm.com/docs/en/zos/3.2.0?topic=functions-open-open-file#rtope__o001d__title__1>

Is there a race condition; a hazard that two CICS processes will append records 
in such
rapid succession that the batch job reads the wrong one?

Regardless, the file will have secular growth unless it is reset periodically.

-- 
gil

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

Reply via email to