Syntax
WHILE condition REPEAT statement
Statement can be any valid statement as described at the beginning of the section on statements.
Purpose
The WHILE statement provides a simple means of looping in a report program. As long as the value of condition is nonzero (true), statement will be executed.
Example:
count := 1;
WHILE count LE num_trans REPEAT BEGIN
DO a_transaction;
count := count + 1;
END