A REORG was being executed where an error had been made such that dynamic allocation was ON and there was no DD statement in the JCL to override a dynamically allocated file. The file involved was a dependent file and NOT specified as one of the areas in the REORG statement. This dependent file was allocated and in update mode on the live CV.
Even though the file was locked and allocated to the CV, REORG accessed the file anyway and updated it as it would any dependent file. In this case, pointers were being changed. This amounted to a local mode job changing a file that is live to an active CV. Local mode batch utilities/jobs should not be able to do that.
The same scenario was tested using the UNLOAD/RELOAD utilities and found that the RELOAD abended with an 0966 when it tried to update a dependent area that was locked.
Is it the case that REORG will update dependent areas whether they are locked or not?