cobol EXIT statement

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Remarks

The COBOL EXIT statement is a terminating flow control verb.

EXIT comes is a few flavours:

  • bare EXIT is a common end point for a series of procedures.
  • EXIT PARAGRAPH, EXIT SECTION provides a means of exiting a structured procedure without executing any of the subsequent statements.
  • EXIT FUNCTION, EXIT METHOD, EXIT PROGRAM marks the logical end of a module of code.
  • EXIT PERFORM breaks out of a inline perform loop.
  • EXIT PERFORM CYCLE causes an inline perform loop to begin the next iteration.

enter image description here



Got any cobol Question?