COBCH1431 Exception declarative only allowed with PERFORMTYPE(MF)

The program has been compiled using the PERFORM-TYPE directive with a parameter other than the default of MF, and contains exception declaratives. This is not recommended.

Resolution:

Edit the code to use the TRY/CATCH construct instead of exception declaratives; then recompile.

Example:

In the following example, remove the $set statement to invoke the default perform-type(mf) directive.

      $set perform-type(osvs)
       repository.
           class exception-class as "System.Exception".
       procedure division.
       declaratives.
       s1 section.
       use after exception exception-class.
           display "Hit exception"
       end declaratives.
       s2 section.