HELLO everyone,
I have an interactive session and a batch job in RPG STYLE both are accessing the same file.
the batch job does a setll,reade(e) with EOF indicator and then an updates the file.
I have two questions.
The interactive job locked one of the records that the batch was trying to access.However the batch job cancelled the interactive job .i wanted to know at what statement this happens and how is this happening.
why did the the batch job cancelled the interactive job.
The batch job failed at the update statement because it was unable to acquire the lock.so it must have passed through the reade before .How did it pass the reade operation without acquireing the lock inside the loop to do the update and failed here ?
I have an interactive session and a batch job in RPG STYLE both are accessing the same file.
the batch job does a setll,reade(e) with EOF indicator and then an updates the file.
I have two questions.
The interactive job locked one of the records that the batch was trying to access.However the batch job cancelled the interactive job .i wanted to know at what statement this happens and how is this happening.
why did the the batch job cancelled the interactive job.
The batch job failed at the update statement because it was unable to acquire the lock.so it must have passed through the reade before .How did it pass the reade operation without acquireing the lock inside the loop to do the update and failed here ?
Comment