CONTINUE¶
Valid in: DBProc, TblProc
The CONTINUE statement starts the next iteration of a FOR, REPORT, or WHILE loop.
The CONTINUE statement has the following format:
The CONTINUE statement uses the label to indicate which level of nested loops to start the next iteration of. If no label is specified after CONTINUE, the innermost loop currently active is closed.
The following example illustrates the use of labels in nested FOR and WHILE loops:
In the inner loop, if condition_2 is true, the inner loop is closed, and the next row for select_1 is obtained. If condition_2 is false, but condition_3 is true, control resumes at the WHILE statement. If condition_4 is true, then control resumes at the WHILE statement, or if condition_5 is true the inner loop is closed and the next row for select_1 is obtained.
Permissions¶
This statement is available to all users.