Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is the purpose of the EXIT PARAGRAPH statement?
Answer: The EXIT PARAGRAPH statement in COBOL is used to exit a specific paragraph prematurely. It is useful for controlling the flow within a section of code.

Example:

PERFORM PROCESS-DATA.
IF ERROR-FLAG = 'Y' THEN
  EXIT PARAGRAPH.
END-IF.
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook