>Thank you for responding
>
>>>I can not get a nested if - endif routine to return
>>>control to parent do while - end do routine.
>
>Added the DO WHILE NOT EOF () statement and that will stop the routine, but I need it to contine to look.
>"LOOP"
>pick up at the next record and continue.
I am sorry, my only purpose was to tell you that DO WHILE .T. constitutes endless loop by definition. So you have to either use condinion (not only EOF(), it might be something else), or stop the loop using EXIT. BTW you must SKIP before LOOP, else you always sit on the same record.
Edward Pikman
Independent Consultant