qb45ener.hlp (Topic list)
LOOP without DO
The DO starting a DO...LOOP statement is missing or
misspelled.
 
Also check other control structures within the DO...LOOP
structure and verify that they are correctly matched. For
example, an IF block without a matching ENDIF inside the
DO...LOOP structure generates this error.