Multiple choice technology programming languages

In the ENVIRONMENT DIVISION which paragrahs should a program (not a subroutine) have?

  1. ERROR RECOVERY

  2. ROLLBACK

  3. Any one of the above

  4. Both of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

A program (not a subroutine) in the ENVIRONMENT DIVISION should have both ERROR RECOVERY and ROLLBACK paragraphs (D). ERROR RECOVERY handles exceptional conditions, while ROLLBACK manages transaction rollback on failure. Having both ensures comprehensive error handling and data integrity. Either one alone is insufficient.