The EXCEPTION STATUS Clause

Visual COBOL and RM/COBOL differ in their treatment of the EXCEPTION STATUS clause during an ACCEPT statement.

The EXCEPTION STATUS values returned differ between the two COBOL languages. See The ACCEPT Statement for a list of statuses returned in Visual COBOL.

In Visual COBOL, the EXCEPTION STATUS value is undefined if the preceding CALL statement does not contain the ON EXCEPTION or ON OVERFLOW phrase. In RM/COBOL, it will always return a value of zero in those cases.