I'm afraid that in this circumstance you are stuck. If you are using an ESDS file, then you are adding records at the end. So, some alternative programming techniques suggest themselves:
- The first is to use two ESDS and then get CICS to read the Batch one after update and adding the records at the end of the CICS ESDS.
- The second is to use my EXCI SupportPac and get batch to send the individual records to CICS for appending to the file.
- Something else which you may care to investigate is the new(ish) Transactional VSAM support but I'm not sure if this works for an ESDS.
Dig Deeper on IBM system z and mainframe systems
Related Q&A from Robert Crawford
For better mainframe capacity planning, how do I convert CPU hours to MIPS? And is there a way to calculate the relationship between MIPS and MSUs? Continue Reading
I have two years of experience in mainframe technology, currently working as a mainframe developer. I want to change to Java technology. Continue Reading
I want to replicate DB2 from the mainframe to an AIX box since it's cheaper and the copy can be used for testing. Is this possible? Continue Reading