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

The AT END clause in COBOL is specifically designed to handle end-of-file conditions and can be used instead of explicitly checking FILE STATUS = 10. When a sequential file reaches EOF, the AT END clause executes, making it a cleaner alternative to FILE STATUS checking. RECORD NOT FOUND, DUPLICATE RECORD, and END OF FILE are not COBOL clauses that serve this purpose.