Nesting error (Error 96)
One of these situations has been encountered:
-
A DO is present without a matching ENDDO or vice versa
-
A SCAN is present without a matching ENDSCAN or vice versa
-
A FOR is present without a matching ENDFOR or vice versa
-
A LOOP or EXIT clause is present outside the DO WHILE ... ENDDO, FOR ... ENDFOR, or SCAN ... ENDSCAN commands.