Keyword introducing an iteration statement to repeat the execution of one or more statements within its defined scope.
The associated condition is checked before each iteration (including the first) and if true, the statements are performed. Otherwise, the WHILE statement completes with no further iterations.
See SQL Stored Procedures and Embedded SQL, B035-1148 for details.
- Keyword introducing the sequence of statements to be performed in the WHILE statement.
- END WHILE
- Keywords indicating the ending of the sequence of statements in the WHILE statement.