Multiple choice technology mainframe

A program can be cancelled by itself or subroutines called by it.

  1. True

  2. False

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

In COBOL, a program cannot cancel itself or be cancelled by its own subroutines. The CANCEL statement must be executed by a program at a higher level in the calling hierarchy. This prevents attempting to release resources and code that are currently in use.