VS COBOL II offers five techniques for intercepting and handling certain input/output errors. All but one of them can be used for both QSAM and VSAM file processing.

  • The end-of-file phrase (AT END)
  • The EXCEPTION/ERROR declarative
  • The FILE STATUS key
  • The VSAM Codes (VSAM only)
  • The INVALID KEY phrase

The most important thing to remember about input/output errors is that you choose whether or not your program will continue executing after a less-than-severe input/output error occurs. VS COBOL 11 does not perform corrective action. If you choose to have your program continue (by incorporating error-handling code into your design), you must also code the appropriate error-recovery procedure.

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd Protection Status

IBM Mainframe Topics