W/o IN clause your REPLACE runs in the current work area but updates field in the other work area. Such REPLACE will not be performed if current work area is at EOF().
>I don't understand it, but it works. Thanks Sergey.
>>
>>*replace companyinfo.totalsurveys with numrecs
>>replace totalsurveys with numrecs IN companyinfo
>>
>>
--sb--