>I would, but a) the loop needs to iterate about 800 times with checks not included in sample code
Lorne,
So can I assume that there is an ENDDO somewhere in your code? DO WHILE requires an ENDDO or else you get a nesting error when you try to compile.