In a DO...LOOP or a FOR...NEXT control structure, passes control out of the current loop. EXIT takes no parameters.
Syntax
EXIT
Usage
An EXIT statement in a DO...LOOP or FOR...NEXT control structure causes control to pass to the statement following the LOOP or NEXT statement. In a nested loop, an EXIT statement passes control out of the current loop structure.