Symptoms:
EZIOE003 Error processing file VFILE
No records are locked.
EZIOE006 VSAM return code is 8 with error code of 92.
or incorrect results returned when processing VSAM files and performing conditional checks on the FILE-STATUS field.
Cause:
FILE-STATUS is provided for both VSAM and non-VSAM files, so if there are multiple files in the program the FILE-STATUS must be qualified, otherwise FILE-STATUS can be set to 0 (zero) incorrectly, and so processing may continue and try to update a record which is not present in the VSAM file.
Resolution:
Qualify the FILE-STATUS field with the appropriate file name eg:
VFILE:FILE-STATUS