Multiple choice technology programming languages

In TANDEM COBOL85, it is not necessary to explicitly close files through the CLOSE statement before executing a STOP RUN

  1. True

  2. False

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

In TANDEM COBOL85, as with standard COBOL practice, files should be explicitly closed using the CLOSE statement before executing STOP RUN. This ensures proper file buffer flushing, record updates, and resource cleanup. Relying on implicit closure can lead to data loss or corruption.

AI explanation

In Tandem COBOL85, issuing STOP RUN implicitly performs an end-of-program cleanup that closes any files still open, so a program is not required to explicitly CLOSE every file beforehand. This is why the statement claiming it's unnecessary is true.