What is the difference between "ON SIZE ERROR" and "AT SIZE ERROR" in error handling?

  • "AT SIZE ERROR" handles file-related errors
  • "ON SIZE ERROR" handles arithmetic operations that result in a data overflow condition
  • "ON SIZE ERROR" is used for index-related errors
  • Both are identical and can be used interchangeably
"ON SIZE ERROR" in COBOL is specifically used to handle arithmetic operations that result in a data overflow condition. On the other hand, "AT SIZE ERROR" is used for file-related errors. Understanding this difference is crucial for effective error handling in COBOL programs.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *