Multiple choice technology mainframe

  1. Which clause can be used instead of checking for FILE STATUS = 10?

  1. RECORD NOT FOUND

  2. AT END

  3. DUPLICATE RECORD

  4. END OF FILE

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

In COBOL, FILE STATUS = 10 indicates end-of-file condition. The AT END clause is specifically designed to handle this situation, allowing the program to execute a block of code when all records have been processed, making it a cleaner alternative to explicitly checking FILE STATUS.