When the exit is called

The error exit is called in the following circumstances.

  • A data validity error occurs when CICS® VR is reading a log
  • A physical error occurs when CICS® VR is reading a log
  • A logical error occurs when CICS® VR is processing a VSAM data set
  • A physical error occurs when CICS® VR is processing a VSAM data set
If used, the error exit is called by CICS® VR when a VSAM error occurs during these CICS® operations:
  • Adding a record to the base cluster
  • Deleting a record from the base cluster
  • Updating an existing record on the base cluster

But, if the error can be corrected by CICS® VR, the error exit is not called. This is true even if an I/O error message is produced.

For backup-while-open certain normal VSAM errors can occur. They are identified by these error codes:

Operation Possible error codes

Adding a record
Deleting a record
Updating a record

008
004, 016, 032, 116
004, 016, 032, 096, 116

These errors are considered to be serious:
  • VSAM error codes (except those in the preceding table)
  • Log READ errors

If you do not provide an exit routine and the error is serious, CICS® VR terminates recovery.