The EXIT statement provides a common end point for a series of paragraphs.
EXIT Statement - Format >>-EXIT--------------------------------------------------------><
The EXIT statement assigns a name to a given point in a program. The EXIT statement has no other effect on the compilation or execution of the program. The EXIT statement must be preceded by a paragraph-name and must appear in a sentence by itself. This sentence must be the only sentence in the paragraph.
The EXIT statement is useful for documenting the end point in a series of paragraphs. If an EXIT paragraph is written as the last paragraph in a declarative procedure or a series of performed procedures, it identifies the point to which control is transferred:
Without an EXIT statement, the end of the sequence is difficult to determine, unless you know the logic of the program.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.